Skip to content

Commit

Permalink
child_process: use kEmptyObject
Browse files Browse the repository at this point in the history
PR-URL: #43159
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
LiviaMedeiros authored and danielleadams committed Jun 13, 2022
1 parent 702bfa0 commit 4109ddc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/child_process.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -510,7 +511,7 @@ function normalizeSpawnArguments(file, args, options) {
}

if (options === undefined)
options = {};
options = kEmptyObject;
else
validateObject(options, 'options');

Expand Down

0 comments on commit 4109ddc

Please sign in to comment.