123456789101112131415161718192021222324252627282930313233 |
- 'use strict';
- Object.defineProperty(exports, '__esModule', {
- value: true
- });
- exports.default = void 0;
- class ErrorWithStack extends Error {
- constructor(message, callsite, stackLimit) {
-
- const originalStackLimit = Error.stackTraceLimit;
- if (stackLimit) {
- Error.stackTraceLimit = Math.max(stackLimit, originalStackLimit || 10);
- }
- super(message);
- if (Error.captureStackTrace) {
- Error.captureStackTrace(this, callsite);
- }
- Error.stackTraceLimit = originalStackLimit;
- }
- }
- exports.default = ErrorWithStack;
|