Skip to content

Commit 8891015

Browse files
committed
simplify
1 parent d78ab67 commit 8891015

File tree

1 file changed

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

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -338,11 +338,7 @@ export class Boundary {
338338
onerror?.(error, reset);
339339
calling_on_error = false;
340340
} catch (error) {
341-
if (this.#effect !== null) {
342-
invoke_error_boundary(error, this.#effect.parent);
343-
} else {
344-
throw error;
345-
}
341+
invoke_error_boundary(error, this.#effect && this.#effect.parent);
346342
} finally {
347343
set_active_reaction(previous_reaction);
348344
}

0 commit comments

Comments
 (0)