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.
It's sad when people do
writer.abort()
with no arguments, because then the various promises (e.g., on anywriter.write()
calls, orwriter.closed
) reject withundefined
.Could we instead automatically generate an
"AbortError"
DOMException
? That would match the behavior ofAbortController
.