Skip to content

Commit dd553bc

Browse files
committed
revert check_stack_trace change
1 parent f9e02f4 commit dd553bc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/kit/src/runtime/client/fetcher.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@ export function unlock_fetch() {
1818
if (DEV && BROWSER) {
1919
let can_inspect_stack_trace = false;
2020

21-
const check_stack_trace = () => {
21+
// eslint-disable-next-line @typescript-eslint/require-await
22+
const check_stack_trace = async () => {
2223
const stack = /** @type {string} */ (new Error().stack);
2324
can_inspect_stack_trace = stack.includes('check_stack_trace');
2425
};
2526

2627
// detect whether async stack traces work
27-
Promise.resolve(check_stack_trace());
28+
check_stack_trace();
2829

2930
/**
3031
* @param {RequestInfo | URL} input

0 commit comments

Comments
 (0)