Browse Source

stderr should be EventEmitter even if it doesn't emit anything

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
3ec030535c
  1. 11
      src/node.js

11
src/node.js

@ -153,12 +153,11 @@
return stdout; return stdout;
}); });
var stderr = process.stderr = { var events = NativeModule.require('events');
writable: true, var stderr = process.stderr = new events.EventEmitter();
readable: false, stderr.writable = true;
write: process.binding('stdio').writeError stderr.readable = false;
}; stderr.write = process.binding('stdio').writeError;
stderr.end = stderr.destroy = stderr.destroySoon = function() { }; stderr.end = stderr.destroy = stderr.destroySoon = function() { };
process.__defineGetter__('stdin', function() { process.__defineGetter__('stdin', function() {

Loading…
Cancel
Save