node/lib/internal/webstreams
Daeyeon Jeong 3fdf6cfad9
stream: fix size function returned from QueuingStrategies
The `size` function returned from the `size` getter of
`ByteLengthQueuingStrategy` or `CountQueuingStrategy` should not have
a prototype property, nor be a constructor.

Refs: https://streams.spec.whatwg.org/#blqs-size
Refs: https://streams.spec.whatwg.org/#cqs-size

Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/44867
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2022-10-12 10:26:35 +00:00
..
adapters.js lib: use safe Promise alternatives when available 2022-08-27 11:37:01 +02:00
compression.js lib: move kEnumerableProperty to internal/util 2022-02-11 17:30:47 +00:00
encoding.js stream: update TextEncoderStream to align the latest spec 2022-08-04 22:41:28 +00:00
queuingstrategies.js stream: fix size function returned from QueuingStrategies 2022-10-12 10:26:35 +00:00
readablestream.js stream: handle enqueuing chunks when a pending BYOB pull request exists 2022-10-02 10:14:57 +00:00
transfer.js lib: use null-prototype objects for property descriptors 2022-06-03 09:23:58 +01:00
transformstream.js lib: use safe Promise alternatives when available 2022-08-27 11:37:01 +02:00
util.js stream: add ReadableByteStream.tee() 2022-09-08 22:06:06 +00:00
writablestream.js stream: remove abortReason from WritableStreamDefaultController 2022-09-09 07:10:12 +00:00