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: nodejs/node#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
sercher committed Apr 25, 2024
1 parent 3cee2c0 commit cc0ff02
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions graal-nodejs/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 graal-nodejs/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 cc0ff02

Please sign in to comment.