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;
});
var stderr = process.stderr = {
writable: true,
readable: false,
write: process.binding('stdio').writeError
};
var events = NativeModule.require('events');
var stderr = process.stderr = new events.EventEmitter();
stderr.writable = true;
stderr.readable = false;
stderr.write = process.binding('stdio').writeError;
stderr.end = stderr.destroy = stderr.destroySoon = function() { };
process.__defineGetter__('stdin', function() {

Loading…
Cancel
Save