diff --git a/lib/child_process.js b/lib/child_process.js index 364f908158c0c8..a4def6acce9b2c 100644 --- a/lib/child_process.js +++ b/lib/child_process.js @@ -929,7 +929,7 @@ function execSync(command, options) { if (inheritStderr && ret.stderr) process.stderr.write(ret.stderr); - const err = checkExecSyncError(ret, opts.args, command); + const err = checkExecSyncError(ret, undefined, command); if (err) throw err;