From 3f93782767d9a5ddcce171bffb406f65ea6e2116 Mon Sep 17 00:00:00 2001 From: MaleDong Date: Sun, 12 Aug 2018 11:22:22 +0800 Subject: [PATCH] lib: remove unused exec param `exec`'s parameters are now deconstructored through `normalizeExecArgs.apply`. We don't need an exclipit parameter anymore (and in fact it's NEVER referred in the code directly), like `spwan` or `spwanSync`. This might be missing. PR-URL: https://github.com/nodejs/node/pull/22274 Reviewed-By: Benjamin Gruenbaum Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Luigi Pinca Reviewed-By: George Adams Reviewed-By: Ruben Bridgewater Reviewed-By: Jon Moss --- lib/child_process.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/child_process.js b/lib/child_process.js index 5452effbabaa91..6b7d02b0f9e2d8 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);