Skip to content

Commit a324ea0

Browse files
authored
doc: clarify subprocess.stdout/in/err property
PR-URL: #43910 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Mestery <[email protected]>
1 parent 223418a commit a324ea0

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

doc/api/child_process.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -1670,7 +1670,7 @@ in which the child process is launched.
16701670
added: v0.1.90
16711671
-->
16721672

1673-
* {stream.Readable}
1673+
* {stream.Readable|null|undefined}
16741674

16751675
A `Readable Stream` that represents the child process's `stderr`.
16761676

@@ -1680,16 +1680,16 @@ 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

16881688
<!-- YAML
16891689
added: v0.1.90
16901690
-->
16911691

1692-
* {stream.Writable}
1692+
* {stream.Writable|null|undefined}
16931693

16941694
A `Writable Stream` that represents the child process's `stdin`.
16951695

@@ -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

@@ -1755,7 +1755,7 @@ not be successfully spawned.
17551755
added: v0.1.90
17561756
-->
17571757

1758-
* {stream.Readable}
1758+
* {stream.Readable|null|undefined}
17591759

17601760
A `Readable Stream` that represents the child process's `stdout`.
17611761

@@ -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)