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:
LiviaMedeiros 2022-05-21 17:50:33 +08:00 committed by Antoine du Hamel
parent dc2a5d79c2
commit 20b0df1d1e
No known key found for this signature in database
GPG Key ID: 21D900FFDB233756
1 changed files with 4 additions and 3 deletions

View File

@ -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');