Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -69,7 +69,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 @@ -121,7 +121,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