diff --git a/lib/child_process.js b/lib/child_process.js index 5a0fd6e21e..69afdbe68d 100644 --- a/lib/child_process.js +++ b/lib/child_process.js @@ -512,7 +512,7 @@ exports.execFileSync = execFileSync; function execSync(command /*, options*/) { var opts = normalizeExecArgs.apply(null, arguments); - var inheritStderr = opts.options ? !opts.options.stdio : true; + var inheritStderr = !opts.options.stdio; var ret = spawnSync(opts.file, opts.options); ret.cmd = command;