diff --git a/lib/child_process.js b/lib/child_process.js index 8460a732d9bf43..6cce1b09e5654b 100644 --- a/lib/child_process.js +++ b/lib/child_process.js @@ -142,8 +142,8 @@ function normalizeExecArgs(command, options, callback) { } -exports.exec = function exec(command /* , options, callback */) { - var opts = normalizeExecArgs.apply(null, arguments); +exports.exec = function exec(/* command , options, callback */) { + const opts = normalizeExecArgs.apply(null, arguments); return exports.execFile(opts.file, opts.options, opts.callback);