mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
doc: use same name in the doc as in the code
Refs: https://streams.spec.whatwg.org/#bytelengthqueuingstrategy PR-URL: https://github.com/nodejs/node/pull/49216 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Deokjin Kim <deokjin81.kim@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
0261c5de56
commit
bf22a5f66e
2 files changed
+6
-6
No files matched your search
@@ -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`
|
||||
@@ -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`
|
||||
|
||||
@@ -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.
|
||||
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user