Skip to content

Commit 20b0df1

Browse files
LiviaMedeirosaduh95
authored andcommittedJun 11, 2022
child_process: use kEmptyObject
PR-URL: nodejs#43159 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
1 parent dc2a5d7 commit 20b0df1

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)
Please sign in to comment.