GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — child_process: use `kEmptyObject` · nodejs/node@4109ddc

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib
    • child_process.js
Expand file treeCollapse file tree
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)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.