Skip to content

Commit 8bd8056

Browse files
authored
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

Lines changed: 1 addition & 1 deletion
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)