Skip to content

Commit

Permalink
doc: correct info in child_process.md
Browse files Browse the repository at this point in the history
`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: #11949
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Evan Lucas <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
vsemozhetbyt authored and MylesBorins committed Apr 18, 2017
1 parent de59a13 commit e1479f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/api/child_process.md
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,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.
Expand All @@ -1085,7 +1085,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.
Expand Down Expand Up @@ -1140,7 +1140,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.
Expand Down

0 comments on commit e1479f4

Please sign in to comment.