- From: Domenic Denicola <notifications@github.com>
- Date: Tue, 10 Sep 2024 22:30:01 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 11 September 2024 05:30:05 UTC
@domenic 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; + } My preference is an assertion. Perhaps in the spec it's an assertion with a big `<p class="warning">` suggesting that implementers really might want to consider crashing if the assertions somehow gets violated? -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/streams/pull/1326#discussion_r1753141620 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/streams/pull/1326/review/2295551030@github.com>
Received on Wednesday, 11 September 2024 05:30:05 UTC