fs: make SyncWriteStream non-enumerable

Make SyncWriteStream non-enumerable since it's only for internal use.

PR-URL: https://github.com/nodejs/io.js/pull/1870
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
pull/1890/merge
Sakthipriyan Vairamani 2015-06-03 20:27:44 +05:30 committed by Trevor Norris
parent a011c3243f
commit 53a4eb3198
1 changed files with 5 additions and 2 deletions

View File

@ -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;