mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
Add process.stderr stream
This commit is contained in:
1 parent
f6e5b8986f
commit
bc23ec8d05
2 files changed
+13
No files matched your search
@@ -81,6 +81,11 @@ Example: the definition of `console.log`
|
||||
};
|
||||
|
||||
|
||||
### process.stderr
|
||||
|
||||
A writable stream to stderr. Writes on this stream are blocking.
|
||||
|
||||
|
||||
### process.stdin
|
||||
|
||||
A `Readable Stream` for stdin. The stdin stream is paused by default, so one
|
||||
|
||||
@@ -153,6 +153,14 @@
|
||||
return stdout;
|
||||
});
|
||||
|
||||
var stderr = process.stderr = {
|
||||
writable: true,
|
||||
readable: false,
|
||||
write: process.binding('stdio').writeError
|
||||
};
|
||||
|
||||
stderr.end = stderr.destroy = stderr.destroySoon = function() { };
|
||||
|
||||
process.__defineGetter__('stdin', function() {
|
||||
if (stdin) return stdin;
|
||||
|
||||
|
||||
Reference in new issue
Block a user