invoke boundary directly

pull/15844/head
Rich Harris 3 months ago
parent a0dba34770
commit da5b74a180

@ -1,6 +1,5 @@
/** @import { Effect, TemplateNode, Value } from '#client' */ /** @import { Effect, TemplateNode, Value } from '#client' */
import { DESTROYED } from '#client/constants'; import { DESTROYED } from '#client/constants';
import { invoke_error_boundary } from '../../error-handling.js';
import { async_derived } from '../../reactivity/deriveds.js'; import { async_derived } from '../../reactivity/deriveds.js';
import { active_effect } from '../../runtime.js'; import { active_effect } from '../../runtime.js';
import { capture, get_pending_boundary } from './boundary.js'; import { capture, get_pending_boundary } from './boundary.js';
@ -28,7 +27,7 @@ export async function async(node, expressions, fn) {
restore(); restore();
fn(node, ...result); fn(node, ...result);
} catch (error) { } catch (error) {
invoke_error_boundary(error, parent); boundary.error(error);
} finally { } finally {
boundary.decrement(); boundary.decrement();
} }

Loading…
Cancel
Save