@@ -30,9 +30,11 @@ function with_boundary(boundary, fn) {
3030 var previous_effect = active_effect ;
3131 var previous_reaction = active_reaction ;
3232 var previous_ctx = component_context ;
33+
3334 set_active_effect ( boundary ) ;
3435 set_active_reaction ( boundary ) ;
3536 set_component_context ( boundary . ctx ) ;
37+
3638 try {
3739 fn ( ) ;
3840 } finally {
@@ -44,11 +46,11 @@ function with_boundary(boundary, fn) {
4446
4547/**
4648 * @param {TemplateNode } node
47- * @param {((anchor: Node) => void) } boundary_fn
4849 * @param {{
4950 * onerror?: (error: unknown, reset: () => void) => void,
5051 * failed?: (anchor: Node, error: () => unknown, reset: () => () => void) => void
5152 * }} props
53+ * @param {((anchor: Node) => void) } boundary_fn
5254 * @returns {void }
5355 */
5456export function boundary ( node , props , boundary_fn ) {
@@ -63,7 +65,7 @@ export function boundary(node, props, boundary_fn) {
6365 var is_creating_fallback = false ;
6466
6567 // We re-use the effect's fn property to avoid allocation of an additional field
66- boundary . fn = ( /** @type { unknown }} */ error ) => {
68+ boundary . fn = ( /** @type {unknown }} */ error ) => {
6769 var onerror = props . onerror ;
6870 let failed_snippet = props . failed ;
6971
0 commit comments