diff --git a/lib/child_process.js b/lib/child_process.js index 6ce21363e1ee6a..335de95ec06a99 100644 --- a/lib/child_process.js +++ b/lib/child_process.js @@ -940,7 +940,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;