Skip to content

Commit 6885dcc

Browse files
vsemozhetbytMylesBorins
authored andcommitted
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: #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]>
1 parent fb0a2e4 commit 6885dcc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/child_process.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ added: v0.1.90
10671067
A `Readable Stream` that represents the child process's `stderr`.
10681068

10691069
If the child was spawned with `stdio[2]` set to anything other than `'pipe'`,
1070-
then this will be `undefined`.
1070+
then this will be `null`.
10711071

10721072
`child.stderr` is an alias for `child.stdio[2]`. Both properties will refer to
10731073
the same value.
@@ -1085,7 +1085,7 @@ A `Writable Stream` that represents the child process's `stdin`.
10851085
continue until this stream has been closed via `end()`.*
10861086

10871087
If the child was spawned with `stdio[0]` set to anything other than `'pipe'`,
1088-
then this will be `undefined`.
1088+
then this will be `null`.
10891089

10901090
`child.stdin` is an alias for `child.stdio[0]`. Both properties will refer to
10911091
the same value.
@@ -1140,7 +1140,7 @@ added: v0.1.90
11401140
A `Readable Stream` that represents the child process's `stdout`.
11411141

11421142
If the child was spawned with `stdio[1]` set to anything other than `'pipe'`,
1143-
then this will be `undefined`.
1143+
then this will be `null`.
11441144

11451145
`child.stdout` is an alias for `child.stdio[1]`. Both properties will refer
11461146
to the same value.

0 commit comments

Comments
 (0)