diff options
author | LiviaMedeiros <livia@cirno.name> | 2022-05-21 12:50:33 +0300 |
---|---|---|
committer | Antoine du Hamel <duhamelantoine1995@gmail.com> | 2022-06-11 13:18:11 +0300 |
commit | 20b0df1d1eba957ea30ba618528debbe02a97c6a (patch) | |
tree | b545608ca383e4d834cd0a8b5b53d08fe4c69661 | |
parent | dc2a5d79c28f1ce700869979bc189365dd67be33 (diff) |
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>
-rw-r--r-- | lib/child_process.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/child_process.js b/lib/child_process.js index 7c1b588995d..d89e2f66fa0 100644 --- a/lib/child_process.js +++ b/lib/child_process.js @@ -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'); |