Skip to content

Commit fa44280

Browse files
committed
Ignore Error.captureStackTrace check in coverage
1 parent d73d231 commit fa44280

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/internal/BaseError.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ export class BaseError<TCode extends string> extends Error {
1111

1212
this.code = code
1313

14+
// Use Error.captureStackTrace if available
15+
/* c8 ignore next 3 */
1416
if (typeof Error.captureStackTrace === "function") {
1517
Error.captureStackTrace(this, this.constructor)
1618
}

0 commit comments

Comments
 (0)