From 7613f4ef5c53ef67c64694f406b47246051d053c Mon Sep 17 00:00:00 2001 From: cola119 Date: Wed, 20 Jul 2022 22:39:32 +0900 Subject: [PATCH] doc: clarify subprocess.stdout/in/err property --- doc/api/child_process.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/api/child_process.md b/doc/api/child_process.md index 0f98613f729891..e1fd2ccd094d69 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -1680,8 +1680,8 @@ 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 -not be successfully spawned. +The `subprocess.stderr` property can be `null` or `undefined` +if the child process could not be successfully spawned. ### `subprocess.stdin` @@ -1702,8 +1702,8 @@ 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 -not be successfully spawned. +The `subprocess.stdin` property can be `null` or `undefined` +if the child process could not be successfully spawned. ### `subprocess.stdio` @@ -1775,8 +1775,8 @@ subprocess.stdout.on('data', (data) => { }); ``` -The `subprocess.stdout` property can be `null` if the child process could -not be successfully spawned. +The `subprocess.stdout` property can be `null` or `undefined` +if the child process could not be successfully spawned. ### `subprocess.unref()`