Skip to content

Commit 8418298

Browse files
committed
we need that error
1 parent 26e4a4c commit 8418298

File tree

1 file changed

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

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,13 @@ function move_effect(effect, fragment) {
404404
}
405405

406406
export function get_boundary() {
407-
return /** @type {Effect} */ (active_effect).b;
407+
const boundary = /** @type {Effect} */ (active_effect).b;
408+
409+
if (boundary === null) {
410+
e.await_outside_boundary();
411+
}
412+
413+
return boundary;
408414
}
409415

410416
export function pending() {

0 commit comments

Comments
 (0)