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 f9e02f4 commit dd553bcCopy full SHA for dd553bc
packages/kit/src/runtime/client/fetcher.js
@@ -18,13 +18,14 @@ export function unlock_fetch() {
18
if (DEV && BROWSER) {
19
let can_inspect_stack_trace = false;
20
21
- const check_stack_trace = () => {
+ // eslint-disable-next-line @typescript-eslint/require-await
22
+ const check_stack_trace = async () => {
23
const stack = /** @type {string} */ (new Error().stack);
24
can_inspect_stack_trace = stack.includes('check_stack_trace');
25
};
26
27
// detect whether async stack traces work
- Promise.resolve(check_stack_trace());
28
+ check_stack_trace();
29
30
/**
31
* @param {RequestInfo | URL} input
0 commit comments