diff options
Diffstat (limited to 'lib/child_process.js')
-rw-r--r-- | lib/child_process.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/child_process.js b/lib/child_process.js index 8060412b3f..805600820f 100644 --- a/lib/child_process.js +++ b/lib/child_process.js @@ -101,7 +101,7 @@ exports.fork = function fork(modulePath /* , args, options */) { // and stderr from the parent if silent isn't set. options.stdio = options.silent ? stdioStringToArray('pipe') : stdioStringToArray('inherit'); - } else if (options.stdio.indexOf('ipc') === -1) { + } else if (!options.stdio.includes('ipc')) { throw new ERR_CHILD_PROCESS_IPC_REQUIRED('options.stdio'); } |