Skip to content

Commit 76279cb

Browse files
vsemozhetbytjasnell
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 c8eec76 commit 76279cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/child_process.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ added: v0.1.90
11321132
A `Readable Stream` that represents the child process's `stderr`.
11331133

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

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

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

11551155
`child.stdin` is an alias for `child.stdio[0]`. Both properties will refer to
11561156
the same value.
@@ -1205,7 +1205,7 @@ added: v0.1.90
12051205
A `Readable Stream` that represents the child process's `stdout`.
12061206

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

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

0 commit comments

Comments
 (0)