Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8bd8056

Browse files
authoredNov 25, 2024··
Add name 'AbortError' for DOMException (#36)
Fixes #35
1 parent e276675 commit 8bd8056

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ const normalizeError = async (request: Request, errorOrFunction?: ErrorOrFunctio
406406
: Promise.reject(errorOrFunction);
407407

408408
function abortError(): Error {
409-
return new DOMException('The operation was aborted.');
409+
return new DOMException('The operation was aborted.', 'AbortError');
410410
}
411411

412412
function abort(): never {

0 commit comments

Comments
 (0)
Please sign in to comment.