From a9f95572c3622b943af0f5d8a779d5b83bca1bca Mon Sep 17 00:00:00 2001 From: zero1five Date: Tue, 21 May 2019 22:39:50 +0800 Subject: [PATCH] child_process: remove extra shallow copy PR-URL: https://github.com/nodejs/node/pull/27801 Reviewed-By: Colin Ihrig Reviewed-By: Ruben Bridgewater Reviewed-By: Yongsheng Zhang Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- lib/child_process.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/child_process.js b/lib/child_process.js index 26965aa6b9c504..0fd372e3112736 100644 --- a/lib/child_process.js +++ b/lib/child_process.js @@ -559,7 +559,7 @@ function spawnSync(file, args, options) { maxBuffer: MAX_BUFFER, ...opts.options }; - options = opts.options = Object.assign(defaults, opts.options); + options = opts.options = defaults; debug('spawnSync', opts.args, options);