diff --git a/lib/fs.js b/lib/fs.js index f90bb094076ecd..ad2a14dabe7e5b 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;