pull/16284/head
Rich Harris 3 months ago
parent 2db357041e
commit 08f4d650bf

@ -1,4 +1,5 @@
/** @import { Effect } from '#client' */ /** @import { Effect } from '#client' */
/** @import { Boundary } from './dom/blocks/boundary.js' */
import { DEV } from 'esm-env'; import { DEV } from 'esm-env';
import { FILENAME } from '../../constants.js'; import { FILENAME } from '../../constants.js';
import { is_firefox } from './dom/operations.js'; import { is_firefox } from './dom/operations.js';
@ -39,8 +40,7 @@ export function invoke_error_boundary(error, effect) {
while (effect !== null) { while (effect !== null) {
if ((effect.f & BOUNDARY_EFFECT) !== 0) { if ((effect.f & BOUNDARY_EFFECT) !== 0) {
try { try {
// @ts-expect-error /** @type {Boundary} */ (effect.b).error(error);
effect.fn(error);
return; return;
} catch {} } catch {}
} }

Loading…
Cancel
Save