[whatwg/streams] Consider making writer.abort() automatically generate an "AbortError" DOMException? (Issue #1290)

It's sad when people do `writer.abort()` with no arguments, because then the various promises (e.g., on any `writer.write()` calls, or `writer.closed`) reject with `undefined`.

Could we instead automatically generate an `"AbortError"` `DOMException`? That would match the behavior of `AbortController`.

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

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

Received on Friday, 14 July 2023 01:55:08 UTC