Skip to content

Commit 7613f4e

Browse files
committed
doc: clarify subprocess.stdout/in/err property
1 parent c784365 commit 7613f4e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/api/child_process.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1680,8 +1680,8 @@ then this will be `null`.
16801680
`subprocess.stderr` is an alias for `subprocess.stdio[2]`. Both properties will
16811681
refer to the same value.
16821682

1683-
The `subprocess.stderr` property can be `null` if the child process could
1684-
not be successfully spawned.
1683+
The `subprocess.stderr` property can be `null` or `undefined`
1684+
if the child process could not be successfully spawned.
16851685

16861686
### `subprocess.stdin`
16871687

@@ -1702,8 +1702,8 @@ then this will be `null`.
17021702
`subprocess.stdin` is an alias for `subprocess.stdio[0]`. Both properties will
17031703
refer to the same value.
17041704

1705-
The `subprocess.stdin` property can be `undefined` if the child process could
1706-
not be successfully spawned.
1705+
The `subprocess.stdin` property can be `null` or `undefined`
1706+
if the child process could not be successfully spawned.
17071707

17081708
### `subprocess.stdio`
17091709

@@ -1775,8 +1775,8 @@ subprocess.stdout.on('data', (data) => {
17751775
});
17761776
```
17771777

1778-
The `subprocess.stdout` property can be `null` if the child process could
1779-
not be successfully spawned.
1778+
The `subprocess.stdout` property can be `null` or `undefined`
1779+
if the child process could not be successfully spawned.
17801780

17811781
### `subprocess.unref()`
17821782

0 commit comments

Comments
 (0)