Skip to content

Commit 41bec5c

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 91a2700 commit 41bec5c

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
@@ -1119,7 +1119,7 @@ added: v0.1.90
11191119
A `Readable Stream` that represents the child process's `stderr`.
11201120

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

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

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

11421142
`child.stdin` is an alias for `child.stdio[0]`. Both properties will refer to
11431143
the same value.
@@ -1192,7 +1192,7 @@ added: v0.1.90
11921192
A `Readable Stream` that represents the child process's `stdout`.
11931193

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

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

0 commit comments

Comments
 (0)