From 53a4eb319893d722cd614bacde98856b1f7c37cb Mon Sep 17 00:00:00 2001 From: Sakthipriyan Vairamani Date: Wed, 3 Jun 2015 20:27:44 +0530 Subject: [PATCH] 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 Reviewed-By: Trevor Norris --- lib/fs.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/fs.js b/lib/fs.js index 32369c0..add2344 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; -- 2.7.4