diff options
author | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2017-03-21 00:35:24 +0200 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2017-03-22 09:16:02 -0700 |
commit | 76279cbb5c1073313ae367d9e49ef03279ffb974 (patch) | |
tree | 6d9b4b21c5e726eecf60e1f996dc5738e05ec647 /doc | |
parent | c8eec76c5fa7a31794380d1a56ccdb722cd7da5e (diff) | |
download | node-new-76279cbb5c1073313ae367d9e49ef03279ffb974.tar.gz |
doc: correct info in child_process.md
`child.stderr`, `child.stdin`, and `child.stdout`
are `null`, not `undefined`, if the relevant `stdio` properties
are set to anything other than 'pipe'.
PR-URL: https://github.com/nodejs/node/pull/11949
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/child_process.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/child_process.md b/doc/api/child_process.md index 7c1f5373d9..df0ba49dbd 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -1132,7 +1132,7 @@ added: v0.1.90 A `Readable Stream` that represents the child process's `stderr`. If the child was spawned with `stdio[2]` set to anything other than `'pipe'`, -then this will be `undefined`. +then this will be `null`. `child.stderr` is an alias for `child.stdio[2]`. Both properties will refer to the same value. @@ -1150,7 +1150,7 @@ A `Writable Stream` that represents the child process's `stdin`. continue until this stream has been closed via `end()`.* If the child was spawned with `stdio[0]` set to anything other than `'pipe'`, -then this will be `undefined`. +then this will be `null`. `child.stdin` is an alias for `child.stdio[0]`. Both properties will refer to the same value. @@ -1205,7 +1205,7 @@ added: v0.1.90 A `Readable Stream` that represents the child process's `stdout`. If the child was spawned with `stdio[1]` set to anything other than `'pipe'`, -then this will be `undefined`. +then this will be `null`. `child.stdout` is an alias for `child.stdio[1]`. Both properties will refer to the same value. |