Skip to content

Commit c79553b

Browse files
committed
fix
1 parent d367052 commit c79553b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/svelte/src/internal/client/error-handling.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ export function handle_error(error) {
3030
throw error;
3131
}
3232

33-
// @ts-expect-error
34-
effect.fn(error);
33+
/** @type {Boundary} */ (effect.b).error(error);
3534
} else {
3635
// otherwise we bubble up the effect tree ourselves
3736
invoke_error_boundary(error, effect);

0 commit comments

Comments
 (0)