Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: use same name in the doc as in the code #49216

Merged
merged 1 commit into from Aug 19, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions doc/api/webstreams.md
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
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