Skip to content

Commit 8101f2b

Browse files
illusi0n7UlisesGascon
authored andcommittedSep 10, 2023
doc: use same name in the doc as in the code
Refs: https://streams.spec.whatwg.org/#bytelengthqueuingstrategy PR-URL: #49216 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Deokjin Kim <deokjin81.kim@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed
 

‎doc/api/webstreams.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1219,13 +1219,13 @@ changes:
12191219
description: This class is now exposed on the global object.
12201220
-->
12211221
1222-
#### `new ByteLengthQueuingStrategy(options)`
1222+
#### `new ByteLengthQueuingStrategy(init)`
12231223
12241224
<!-- YAML
12251225
added: v16.5.0
12261226
-->
12271227
1228-
* `options` {Object}
1228+
* `init` {Object}
12291229
* `highWaterMark` {number}
12301230
12311231
#### `byteLengthQueuingStrategy.highWaterMark`
@@ -1256,13 +1256,13 @@ changes:
12561256
description: This class is now exposed on the global object.
12571257
-->
12581258
1259-
#### `new CountQueuingStrategy(options)`
1259+
#### `new CountQueuingStrategy(init)`
12601260
12611261
<!-- YAML
12621262
added: v16.5.0
12631263
-->
12641264
1265-
* `options` {Object}
1265+
* `init` {Object}
12661266
* `highWaterMark` {number}
12671267
12681268
#### `countQueuingStrategy.highWaterMark`

‎lib/internal/webstreams/queuingstrategies.js

+2-2
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)
Please sign in to comment.