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 d7e9bd1

Browse filesBrowse files
cola119danielleadams
authored andcommitted
doc: clarify subprocess.stdout/in/err property
PR-URL: #43910 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com>
1 parent 2c47e58 commit d7e9bd1
Copy full SHA for d7e9bd1

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+9
-9
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
+9-9Lines changed: 9 additions & 9 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.