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 — test: use destructuring for accessing setting values · nodejs/node@a376284

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-http2-session-settings.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-http2-session-settings.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-http2-session-settings.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,15 @@ server.listen(
104104
['maxHeaderListSize', 2 ** 32],
105105
['maxHeaderSize', -1],
106106
['maxHeaderSize', 2 ** 32],
107-
].forEach((i) => {
107+
].forEach(([key, value]) => {
108108
const settings = {};
109-
settings[i[0]] = i[1];
109+
settings[key] = value;
110110
assert.throws(
111111
() => client.settings(settings),
112112
{
113113
name: 'RangeError',
114114
code: 'ERR_HTTP2_INVALID_SETTING_VALUE',
115-
message: `Invalid value for setting "${i[0]}": ${i[1]}`
115+
message: `Invalid value for setting "${key}": ${value}`
116116
}
117117
);
118118
});

0 commit comments

Comments
0 (0)
You are visitor 01402503 — 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.