Remove process.mixin dependency from fs
This commit is contained in:
parent
5861db8a69
commit
a38aa02f9f
@ -444,7 +444,8 @@ var FileReadStream = exports.FileReadStream = function(path, options) {
|
|||||||
this.mode = 0666;
|
this.mode = 0666;
|
||||||
this.bufferSize = 4 * 1024;
|
this.bufferSize = 4 * 1024;
|
||||||
|
|
||||||
process.mixin(this, options || {});
|
options = options || {};
|
||||||
|
for (var i in options) this[i] = options[i];
|
||||||
|
|
||||||
var
|
var
|
||||||
self = this,
|
self = this,
|
||||||
@ -555,7 +556,8 @@ var FileWriteStream = exports.FileWriteStream = function(path, options) {
|
|||||||
this.encoding = 'binary';
|
this.encoding = 'binary';
|
||||||
this.mode = 0666;
|
this.mode = 0666;
|
||||||
|
|
||||||
process.mixin(this, options || {});
|
options = options || {};
|
||||||
|
for (var i in options) this[i] = options[i];
|
||||||
|
|
||||||
var
|
var
|
||||||
self = this,
|
self = this,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user