Skip to content

Commit

Permalink
Add name 'AbortError' for DOMException (#36)
Browse files Browse the repository at this point in the history
Fixes #35
  • Loading branch information
naymic authored Nov 25, 2024
1 parent e276675 commit 8bd8056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ const normalizeError = async (request: Request, errorOrFunction?: ErrorOrFunctio
: Promise.reject(errorOrFunction);

function abortError(): Error {
return new DOMException('The operation was aborted.');
return new DOMException('The operation was aborted.', 'AbortError');
}

function abort(): never {
Expand Down

0 comments on commit 8bd8056

Please sign in to comment.