- From: Mattias Buelens <notifications@github.com>
- Date: Sat, 22 Nov 2025 12:27:21 -0800
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Saturday, 22 November 2025 20:27:25 UTC
MattiasBuelens left a comment (whatwg/streams#1358) I suppose it makes sense that `releaseLock(reason)` would mirror `AbortController.abort(reason)`. Unfortunately, I think `reason` will still default to a `TypeError` for backwards compatibility, so you have to bring your own `AbortError` if you want that. 😅 Would you expect `reader.closed` to reject with the same reason that was passed to `releaseLock()`? Right now, `reader.closed` always rejects with a fresh `TypeError` as per [steps 4 and 5 of ReadableStreamReaderGenericRelease](https://streams.spec.whatwg.org/#readable-stream-reader-generic-release), but I think we should use the same reason. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/streams/issues/1358#issuecomment-3567023802 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/streams/issues/1358/3567023802@github.com>
Received on Saturday, 22 November 2025 20:27:25 UTC