Skip to content

Commit abdb476

Browse files
LiviaMedeirosguangwong
authored andcommitted
child_process: use kEmptyObject
PR-URL: nodejs/node#43159 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
1 parent 218bd62 commit abdb476

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/child_process.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,11 @@ const {
4343
} = primordials;
4444

4545
const {
46-
promisify,
4746
convertToValidSignal,
4847
createDeferredPromise,
49-
getSystemErrorName
48+
getSystemErrorName,
49+
kEmptyObject,
50+
promisify,
5051
} = require('internal/util');
5152
const { isArrayBufferView } = require('internal/util/types');
5253
let debug = require('internal/util/debuglog').debuglog(
@@ -519,7 +520,7 @@ function normalizeSpawnArguments(file, args, options) {
519520
}
520521

521522
if (options === undefined)
522-
options = {};
523+
options = kEmptyObject;
523524
else
524525
validateObject(options, 'options');
525526

0 commit comments

Comments
 (0)