diff --git a/lib/fs.js b/lib/fs.js index 32369c009ae2cb..add234420ec7a7 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -1895,8 +1895,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;