We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d78ab67 commit 8891015Copy full SHA for 8891015
packages/svelte/src/internal/client/dom/blocks/boundary.js
@@ -338,11 +338,7 @@ export class Boundary {
338
onerror?.(error, reset);
339
calling_on_error = false;
340
} catch (error) {
341
- if (this.#effect !== null) {
342
- invoke_error_boundary(error, this.#effect.parent);
343
- } else {
344
- throw error;
345
- }
+ invoke_error_boundary(error, this.#effect && this.#effect.parent);
346
} finally {
347
set_active_reaction(previous_reaction);
348
}
0 commit comments