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);