We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d73d231 commit fa44280Copy full SHA for fa44280
src/internal/BaseError.ts
@@ -11,6 +11,8 @@ export class BaseError<TCode extends string> extends Error {
11
12
this.code = code
13
14
+ // Use Error.captureStackTrace if available
15
+ /* c8 ignore next 3 */
16
if (typeof Error.captureStackTrace === "function") {
17
Error.captureStackTrace(this, this.constructor)
18
}
0 commit comments