doc: fix return types for sync methods · nodejs/node@56b1252 · GitHub
Skip to content

Commit 56b1252

Browse files
cfleeaduh95
authored andcommitted
doc: fix return types for sync methods
For the sync methods spawnSync(), execSync() and execFileSync(), when the stdio option is set to anything other than 'pipe', the stdout and stderr returned from the C++ code will be null, and not a string or Buffer as currently documented. PR-URL: #58575 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ethan Arrowood <ethan@arrowood.dev> Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent da0d32a commit 56b1252

2 files changed

Lines changed: 12 additions & 8 deletions

File tree

‎doc/api/child_process.md‎

Lines changed: 8 additions & 4 deletions

‎lib/child_process.js‎

Lines changed: 4 additions & 4 deletions

0 commit comments

Comments
 (0)