Skip to content

Commit

Permalink
doc: use same name in the doc as in the code
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
illusi0n7 authored and targos committed Nov 26, 2023
1 parent 0261c5d commit bf22a5f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions doc/api/webstreams.md
Original file line number Diff line number Diff line change
Expand Up @@ -1172,13 +1172,13 @@ changes:
description: This class is now exposed on the global object.
-->
#### `new ByteLengthQueuingStrategy(options)`
#### `new ByteLengthQueuingStrategy(init)`
<!-- YAML
added: v16.5.0
-->
* `options` {Object}
* `init` {Object}
* `highWaterMark` {number}
#### `byteLengthQueuingStrategy.highWaterMark`
Expand Down Expand Up @@ -1209,13 +1209,13 @@ changes:
description: This class is now exposed on the global object.
-->
#### `new CountQueuingStrategy(options)`
#### `new CountQueuingStrategy(init)`
<!-- YAML
added: v16.5.0
-->
* `options` {Object}
* `init` {Object}
* `highWaterMark` {number}
#### `countQueuingStrategy.highWaterMark`
Expand Down
4 changes: 2 additions & 2 deletions lib/internal/webstreams/queuingstrategies.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class ByteLengthQueuingStrategy {
constructor(init) {
validateObject(init, 'init');
if (init.highWaterMark === undefined)
throw new ERR_MISSING_OPTION('options.highWaterMark');
throw new ERR_MISSING_OPTION('init.highWaterMark');

// The highWaterMark value is not checked until the strategy
// is actually used, per the spec.
Expand Down Expand Up @@ -133,7 +133,7 @@ class CountQueuingStrategy {
constructor(init) {
validateObject(init, 'init');
if (init.highWaterMark === undefined)
throw new ERR_MISSING_OPTION('options.highWaterMark');
throw new ERR_MISSING_OPTION('init.highWaterMark');

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

0 comments on commit bf22a5f

Please sign in to comment.