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 9c88438 commit 0c34711Copy full SHA for 0c34711
packages/svelte/src/internal/shared/dev.js
@@ -1,14 +1,17 @@
1
-import { define_property } from './utils';
+import { define_property } from './utils.js';
2
3
/**
4
* @param {string} label
5
* @param {(stack: string | undefined) => string | undefined} fn
6
* @returns {Error & { stack: string } | null}
7
*/
8
export function get_infinite_stack(label, fn) {
9
+ // @ts-ignore - doesn't exist everywhere
10
const limit = Error.stackTraceLimit;
11
12
Error.stackTraceLimit = Infinity;
13
let error = Error();
14
15
Error.stackTraceLimit = limit;
16
const stack = fn(error.stack);
17
0 commit comments