Skip to content

Commit

Permalink
child_process: remove extra shallow copy
Browse files Browse the repository at this point in the history
PR-URL: #27801
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
zero1five authored and targos committed May 28, 2019
1 parent 2b7ad12 commit a9f9557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/child_process.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit a9f9557

Please sign in to comment.