Skip to content

Commit da5b74a

Browse files
committed
invoke boundary directly
1 parent a0dba34 commit da5b74a

File tree

1 file changed

+1
-2
lines changed
  • packages/svelte/src/internal/client/dom/blocks

1 file changed

+1
-2
lines changed

packages/svelte/src/internal/client/dom/blocks/async.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/** @import { Effect, TemplateNode, Value } from '#client' */
22
import { DESTROYED } from '#client/constants';
3-
import { invoke_error_boundary } from '../../error-handling.js';
43
import { async_derived } from '../../reactivity/deriveds.js';
54
import { active_effect } from '../../runtime.js';
65
import { capture, get_pending_boundary } from './boundary.js';
@@ -28,7 +27,7 @@ export async function async(node, expressions, fn) {
2827
restore();
2928
fn(node, ...result);
3029
} catch (error) {
31-
invoke_error_boundary(error, parent);
30+
boundary.error(error);
3231
} finally {
3332
boundary.decrement();
3433
}

0 commit comments

Comments
 (0)