+4
-2
lib/src/core/error.ts
+4
-2
lib/src/core/error.ts
···
44
44
this.context = context;
45
45
this.timestamp = Date.now();
46
46
47
-
if (Error.captureStackTrace) {
48
-
Error.captureStackTrace(this);
47
+
// V8-specific feature
48
+
// See: https://github.com/microsoft/TypeScript/issues/3926
49
+
if ((Error as any).captureStackTrace) {
50
+
(Error as any).captureStackTrace(this, VoltError);
49
51
}
50
52
}
51
53