- From: Shannon Booth <notifications@github.com>
- Date: Sat, 24 Oct 2026 07:33:45 -0700
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/streams/pull/1388@github.com>
The "close a ReadableStream" algorithm for other specifications performs ! ReadableByteStreamControllerClose(), but that throws, after erroring the stream, when the first pending pull-into descriptor holds only part of an element. Fetch reaches this when a network body ends with a BYOB read pending, e.g., a 1-byte body read into a Uint16Array.
Fixes: https://github.com/whatwg/streams/issues/1387
<!--
Thank you for contributing to the Streams Standard! Please describe the change you are making and complete the checklist below if your change is not editorial.
When you submit this PR, and each time you edit this comment (including checking a checkbox through the UI!), PR Preview will run and update it. As such make any edits in one go and only after PR Preview has run.
If you think your PR is ready to land, please double-check that the build is passing and the checklist is complete before pinging.
-->
- [x] At least two implementers are interested (and none opposed):
* Fixes a specification issue
- [ ] [Tests](https://github.com/web-platform-tests/wpt) are written and can be reviewed and commented upon at:
* … <!-- If these tests are tentative, link a PR to make them non-tentative. -->
- [x] [Implementation bugs](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) are filed:
* N/A
- [x] [MDN issue](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) is filed: N/A
- [x] The top of this comment includes a [clear commit message](https://github.com/whatwg/meta/blob/main/COMMITTING.md) to use. <!-- If you created this PR from a single commit, Github copied its message. Otherwise, you need to add a commit message yourself. -->
(See [WHATWG Working Mode: Changes](https://whatwg.org/working-mode#changes) for more details.)
You can view, comment on, or merge this pull request online at:
https://github.com/whatwg/streams/pull/1388
-- Commit Summary --
* Do not assert that closing a readable byte stream cannot throw
-- File Changes --
M index.bs (7)
-- Patch Links --
https://github.com/whatwg/streams/pull/1388.patch
https://github.com/whatwg/streams/pull/1388.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/1388
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/streams/pull/1388@github.com>
Received on Saturday, 24 October 2026 14:33:49 UTC