From cc0ff029db4e2c0345a47f0240f04077e90aa94c Mon Sep 17 00:00:00 2001 From: Sergey Chernyshev Date: Thu, 25 Apr 2024 04:20:30 +0200 Subject: [PATCH] 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 Reviewed-By: Deokjin Kim Reviewed-By: Luigi Pinca --- graal-nodejs/doc/api/webstreams.md | 8 ++++---- graal-nodejs/lib/internal/webstreams/queuingstrategies.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/graal-nodejs/doc/api/webstreams.md b/graal-nodejs/doc/api/webstreams.md index 4d487d9d05d..4635e414fd8 100644 --- a/graal-nodejs/doc/api/webstreams.md +++ b/graal-nodejs/doc/api/webstreams.md @@ -1172,13 +1172,13 @@ changes: description: This class is now exposed on the global object. --> -#### `new ByteLengthQueuingStrategy(options)` +#### `new ByteLengthQueuingStrategy(init)` -* `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)` -* `options` {Object} +* `init` {Object} * `highWaterMark` {number} #### `countQueuingStrategy.highWaterMark` diff --git a/graal-nodejs/lib/internal/webstreams/queuingstrategies.js b/graal-nodejs/lib/internal/webstreams/queuingstrategies.js index df114a44cc8..ee416910683 100644 --- a/graal-nodejs/lib/internal/webstreams/queuingstrategies.js +++ b/graal-nodejs/lib/internal/webstreams/queuingstrategies.js @@ -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.