Skip to content

Commit 4109ddc

Browse files
LiviaMedeirosdanielleadams
authored andcommitted
child_process: use kEmptyObject
PR-URL: #43159 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 702bfa0 commit 4109ddc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/child_process.js

+4-3
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(
@@ -510,7 +511,7 @@ function normalizeSpawnArguments(file, args, options) {
510511
}
511512

512513
if (options === undefined)
513-
options = {};
514+
options = kEmptyObject;
514515
else
515516
validateObject(options, 'options');
516517

0 commit comments

Comments
 (0)