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 — http2: use `kEmptyObject` · nodejs/node@2ffd541

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib/internal/http2
    • core.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/internal/http2/core.js‎

Copy file name to clipboardExpand all lines: lib/internal/http2/core.js
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ const {
3737
const {
3838
assertCrypto,
3939
customInspectSymbol: kInspect,
40-
promisify
40+
kEmptyObject,
41+
promisify,
4142
} = require('internal/util');
4243

4344
assertCrypto();
@@ -3332,7 +3333,7 @@ function getPackedSettings(settings) {
33323333
return binding.packSettings();
33333334
}
33343335

3335-
function getUnpackedSettings(buf, options = {}) {
3336+
function getUnpackedSettings(buf, options = kEmptyObject) {
33363337
if (!isArrayBufferView(buf) || buf.length === undefined) {
33373338
throw new ERR_INVALID_ARG_TYPE('buf',
33383339
['Buffer', 'TypedArray'], buf);

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.