- From: Mattias Buelens <notifications@github.com>
- Date: Fri, 16 Apr 2021 16:52:24 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 16 April 2021 23:52:37 UTC
I also noticed that [ReadableByteStreamControllerRespondWithNewView](https://streams.spec.whatwg.org/#readable-byte-stream-controller-respond-with-new-view) can still throw an error *after* we've already updated the first pull-into descriptor's buffer to the new view's buffer. Specifically, [ReadableByteStreamControllerRespondInternal](https://streams.spec.whatwg.org/#readable-byte-stream-controller-respond-internal) may still throw a `TypeError` if *bytesWritten* is or is not zero (depending on whether we're in the readable or closed state). I think we will need to turn these checks into asserts inside `RespondInternal()`, and throw errors in `Respond()` and `RespondWithNewView()`? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/streams/pull/1123#issuecomment-821727018
Received on Friday, 16 April 2021 23:52:37 UTC