Skip to content

Commit

Permalink
Fix AbortError name in minified code
Browse files Browse the repository at this point in the history
  • Loading branch information
aikoven committed Feb 11, 2021
1 parent 088ee86 commit a72cda5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AbortError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class AbortError extends Error {

this.message = 'The operation has been aborted';

this.name = this.constructor.name;
this.name = 'AbortError';

if (typeof (Error as any).captureStackTrace === 'function') {
(Error as any).captureStackTrace(this, this.constructor);
Expand Down

0 comments on commit a72cda5

Please sign in to comment.