mirror of https://github.com/nodejs/node.git
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:
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');
|
||||
|
||||
|
|
Loading…
Reference in New Issue