diff --git a/src/AbortError.ts b/src/AbortError.ts index 47a9512..32a18a2 100644 --- a/src/AbortError.ts +++ b/src/AbortError.ts @@ -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);