Skip to content

Commit bf22a5f

Browse files
illusi0n7targos
authored andcommitted
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 <[email protected]> Reviewed-By: Deokjin Kim <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 0261c5d commit bf22a5f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

‎doc/api/webstreams.md‎

Lines changed: 4 additions & 4 deletions
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-
#### `newByteLengthQueuingStrategy(options)`
1175+
#### `newByteLengthQueuingStrategy(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-
#### `newCountQueuingStrategy(options)`
1212+
#### `newCountQueuingStrategy(init)`
12131213
12141214
<!-- YAML
12151215
added: v16.5.0
12161216
-->
12171217
1218-
* `options`{Object}
1218+
* `init`{Object}
12191219
* `highWaterMark`{number}
12201220
12211221
#### `countQueuingStrategy.highWaterMark`

‎lib/internal/webstreams/queuingstrategies.js‎

Lines 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-
thrownewERR_MISSING_OPTION('options.highWaterMark');
81+
thrownewERR_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-
thrownewERR_MISSING_OPTION('options.highWaterMark');
136+
thrownewERR_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)