Re: [whatwg/streams] "close a ReadableStream" asserts that ReadableByteStreamControllerClose can’t throw (Issue #1387)

MattiasBuelens left a comment (whatwg/streams#1387)

I always found this to be a weird part of the specification... Is it really the *byte source*'s fault that the BYOB reader is trying to do a multi-byte `read(view)`, but there just aren't any more bytes? 🤔

I'm wondering if we should just get rid of the ["throw _e_" in step 4.2.3 of `ReadableByteStreamControllerClose`](https://streams.spec.whatwg.org/#readable-byte-stream-controller-close), and let the byte source tear down "normally" while only the reader gets the error.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/issues/1387#issuecomment-6387320280
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/streams/issues/1387/6387320280@github.com>

Received on Saturday, 24 October 2026 17:30:02 UTC