From a38aa02f9f31ab7ace90c737e064bb6f2b78e3cd Mon Sep 17 00:00:00 2001 From: isaacs Date: Mon, 8 Mar 2010 15:06:46 -0800 Subject: [PATCH] Remove process.mixin dependency from fs --- lib/fs.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/fs.js b/lib/fs.js index 9461f2d820..22d4afb443 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -444,7 +444,8 @@ var FileReadStream = exports.FileReadStream = function(path, options) { this.mode = 0666; this.bufferSize = 4 * 1024; - process.mixin(this, options || {}); + options = options || {}; + for (var i in options) this[i] = options[i]; var self = this, @@ -555,7 +556,8 @@ var FileWriteStream = exports.FileWriteStream = function(path, options) { this.encoding = 'binary'; this.mode = 0666; - process.mixin(this, options || {}); + options = options || {}; + for (var i in options) this[i] = options[i]; var self = this,