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 <duhamelantoine1995@gmail.com>
Reviewed-By: Deokjin Kim <deokjin81.kim@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
illusi0n7 authored and UlisesGascon committed Sep 10, 2023
1 parent 7eb10a3 commit 8101f2b
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 @@ -1219,13 +1219,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 @@ -1256,13 +1256,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 8101f2b

Please sign in to comment.