Skip to content

Consider making writer.abort() automatically generate an "AbortError" DOMException? #1290

Open
@domenic

Description

@domenic

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions