mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
child_process: use kEmptyObject
PR-URL: https://github.com/nodejs/node/pull/43159 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
committed by
Antoine du Hamel
parent
dc2a5d79c2
commit
20b0df1d1e
@@ -43,10 +43,11 @@ const {
|
||||
} = primordials;
|
||||
|
||||
const {
|
||||
promisify,
|
||||
convertToValidSignal,
|
||||
createDeferredPromise,
|
||||
getSystemErrorName
|
||||
getSystemErrorName,
|
||||
kEmptyObject,
|
||||
promisify,
|
||||
} = require('internal/util');
|
||||
const { isArrayBufferView } = require('internal/util/types');
|
||||
let debug = require('internal/util/debuglog').debuglog(
|
||||
@@ -510,7 +511,7 @@ function normalizeSpawnArguments(file, args, options) {
|
||||
}
|
||||
|
||||
if (options === undefined)
|
||||
options = {};
|
||||
options = kEmptyObject;
|
||||
else
|
||||
validateObject(options, 'options');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user