Skip to content

Commit a9f9557

Browse files
zero1fivetargos
authored andcommitted
child_process: remove extra shallow copy
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>
1 parent 2b7ad12 commit a9f9557

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/child_process.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ function spawnSync(file, args, options) {
559559
maxBuffer: MAX_BUFFER,
560560
...opts.options
561561
};
562-
options = opts.options = Object.assign(defaults, opts.options);
562+
options = opts.options = defaults;
563563

564564
debug('spawnSync', opts.args, options);
565565

0 commit comments

Comments
 (0)