From ae0728745872ea9af7acf80b278f2b096aac9582 Mon Sep 17 00:00:00 2001 From: cola119 Date: Wed, 20 Jul 2022 22:19:44 +0900 Subject: [PATCH] doc: clarify subprocess.stdout/in/err property --- doc/api/child_process.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api/child_process.md b/doc/api/child_process.md index 0f98613f729891..8b479268717f99 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -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` @@ -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` @@ -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()`