Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6885dcc

Browse filesBrowse 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 <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>
1 parent fb0a2e4 commit 6885dcc
Copy full SHA for 6885dcc

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Collapse file

‎doc/api/child_process.md‎

Copy file name to clipboardExpand all lines: doc/api/child_process.md
+3-3Lines changed: 3 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.