Skip to content

Commit 0c34711

Browse files
ugh
1 parent 9c88438 commit 0c34711

File tree

1 file changed

+4
-1
lines changed
  • packages/svelte/src/internal/shared

1 file changed

+4
-1
lines changed

packages/svelte/src/internal/shared/dev.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
import { define_property } from './utils';
1+
import { define_property } from './utils.js';
22

33
/**
44
* @param {string} label
55
* @param {(stack: string | undefined) => string | undefined} fn
66
* @returns {Error & { stack: string } | null}
77
*/
88
export function get_infinite_stack(label, fn) {
9+
// @ts-ignore - doesn't exist everywhere
910
const limit = Error.stackTraceLimit;
11+
// @ts-ignore - doesn't exist everywhere
1012
Error.stackTraceLimit = Infinity;
1113
let error = Error();
14+
// @ts-ignore - doesn't exist everywhere
1215
Error.stackTraceLimit = limit;
1316
const stack = fn(error.stack);
1417

0 commit comments

Comments
 (0)