Skip to content

Commit

Permalink
fs: make SyncWriteStream non-enumerable
Browse files Browse the repository at this point in the history
Make SyncWriteStream non-enumerable since it's only for internal use.

PR-URL: #1870
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Trevor Norris <[email protected]>
  • Loading branch information
thefourtheye authored and trevnorris committed Jun 10, 2015
1 parent a011c32 commit 53a4eb3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 53a4eb3

Please sign in to comment.