Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4109ddc

Browse filesBrowse files
LiviaMedeirosdanielleadams
authored andcommitted
child_process: use kEmptyObject
PR-URL: #43159 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 702bfa0 commit 4109ddc
Copy full SHA for 4109ddc

File tree

Expand file treeCollapse file tree

1 file changed

+4
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-3
lines changed
Open diff view settings
Collapse file

‎lib/child_process.js‎

Copy file name to clipboardExpand all lines: lib/child_process.js
+4-3Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,11 @@ const {
4343
} = primordials;
4444

4545
const {
46-
promisify,
4746
convertToValidSignal,
4847
createDeferredPromise,
49-
getSystemErrorName
48+
getSystemErrorName,
49+
kEmptyObject,
50+
promisify,
5051
} = require('internal/util');
5152
const { isArrayBufferView } = require('internal/util/types');
5253
let debug = require('internal/util/debuglog').debuglog(
@@ -510,7 +511,7 @@ function normalizeSpawnArguments(file, args, options) {
510511
}
511512

512513
if (options === undefined)
513-
options = {};
514+
options = kEmptyObject;
514515
else
515516
validateObject(options, 'options');
516517

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.