Skip to content

Commit

Permalink
doc: clarify subprocess.stdout/in/err property
Browse files Browse the repository at this point in the history
  • Loading branch information
cola119 committed Jul 20, 2022
1 parent c784365 commit ae07287
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/api/child_process.md
Original file line number Diff line number Diff line change
Expand Up @@ -1680,7 +1680,7 @@ then this will be `null`.
`subprocess.stderr` is an alias for `subprocess.stdio[2]`. Both properties will
refer to the same value.

The `subprocess.stderr` property can be `null` if the child process could
The `subprocess.stderr` property can be `null` or `undefined` if the child process could
not be successfully spawned.

### `subprocess.stdin`
Expand All @@ -1702,7 +1702,7 @@ then this will be `null`.
`subprocess.stdin` is an alias for `subprocess.stdio[0]`. Both properties will
refer to the same value.

The `subprocess.stdin` property can be `undefined` if the child process could
The `subprocess.stdin` property can be `null` or `undefined` if the child process could
not be successfully spawned.

### `subprocess.stdio`
Expand Down Expand Up @@ -1775,7 +1775,7 @@ subprocess.stdout.on('data', (data) => {
});
```

The `subprocess.stdout` property can be `null` if the child process could
The `subprocess.stdout` property can be `null` or `undefined` if the child process could
not be successfully spawned.

### `subprocess.unref()`
Expand Down

0 comments on commit ae07287

Please sign in to comment.