diff --git a/lib/fs.js b/lib/fs.js index 90554eab484a9a..60c74c4a10a256 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -1878,8 +1878,11 @@ util.inherits(SyncWriteStream, Stream); // Export -fs.SyncWriteStream = SyncWriteStream; - +Object.defineProperty(fs, 'SyncWriteStream', { + configurable: true, + writable: true, + value: SyncWriteStream +}); SyncWriteStream.prototype.write = function(data, arg1, arg2) { var encoding, cb;