- From: Mattias Buelens <notifications@github.com>
- Date: Mon, 16 Sep 2024 14:35:16 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 16 September 2024 21:35:20 UTC
@MattiasBuelens commented on this pull request.
> + if (SafeCopyDataBlockBytes(pullIntoDescriptor.buffer, destStart, headOfQueue.buffer, headOfQueue.byteOffset,
+ bytesToCopy) === false) {
+ // This should never happen. Please report an issue if it does! https://github.com/whatwg/streams/issues
+ const e = new TypeError('Invalid buffer');
+ ReadableByteStreamControllerError(controller, e);
+ return false;
+ }
I changed it to an assertion with a big warning.
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/1326#discussion_r1761992636
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/streams/pull/1326/review/2307888858@github.com>
Received on Monday, 16 September 2024 21:35:20 UTC