Skip to content

Use w3c defined message for AbortError #657

@wheresrhys

Description

@wheresrhys

The w3c draft IDL defines the expected message for AbortError to be The operation was aborted. (https://heycam.github.io/webidl/#aborterror)

But this library uses a different string:

https://github.com/bitinn/node-fetch/blob/0c2294ec48fa5b84519f8bdd60f4e2672ebd9b06/src/index.js#L54

While node-fetch doesn't aim to replicate whatwg fetch in every aspect, this seems like an unnecessary divergence.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions