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 — doc: use same name in the doc as in the code · nodejs/node@bf22a5f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • webstreams.md
  • lib/internal/webstreams
    • queuingstrategies.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/webstreams.md‎

Copy file name to clipboardExpand all lines: doc/api/webstreams.md
+4-4Lines changed: 4 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1172,13 +1172,13 @@ changes:
11721172
description: This class is now exposed on the global object.
11731173
-->
11741174

1175-
#### `new ByteLengthQueuingStrategy(options)`
1175+
#### `new ByteLengthQueuingStrategy(init)`
11761176

11771177
<!-- YAML
11781178
added: v16.5.0
11791179
-->
11801180

1181-
* `options` {Object}
1181+
* `init` {Object}
11821182
* `highWaterMark` {number}
11831183

11841184
#### `byteLengthQueuingStrategy.highWaterMark`
@@ -1209,13 +1209,13 @@ changes:
12091209
description: This class is now exposed on the global object.
12101210
-->
12111211

1212-
#### `new CountQueuingStrategy(options)`
1212+
#### `new CountQueuingStrategy(init)`
12131213

12141214
<!-- YAML
12151215
added: v16.5.0
12161216
-->
12171217

1218-
* `options` {Object}
1218+
* `init` {Object}
12191219
* `highWaterMark` {number}
12201220

12211221
#### `countQueuingStrategy.highWaterMark`
Collapse file

‎lib/internal/webstreams/queuingstrategies.js‎

Copy file name to clipboardExpand all lines: lib/internal/webstreams/queuingstrategies.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class ByteLengthQueuingStrategy {
7878
constructor(init) {
7979
validateObject(init, 'init');
8080
if (init.highWaterMark === undefined)
81-
throw new ERR_MISSING_OPTION('options.highWaterMark');
81+
throw new ERR_MISSING_OPTION('init.highWaterMark');
8282

8383
// The highWaterMark value is not checked until the strategy
8484
// is actually used, per the spec.
@@ -133,7 +133,7 @@ class CountQueuingStrategy {
133133
constructor(init) {
134134
validateObject(init, 'init');
135135
if (init.highWaterMark === undefined)
136-
throw new ERR_MISSING_OPTION('options.highWaterMark');
136+
throw new ERR_MISSING_OPTION('init.highWaterMark');
137137

138138
// The highWaterMark value is not checked until the strategy
139139
// is actually used, per the spec.

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.