pull/16171/head
Rich Harris 2 months ago
parent d78ab67f85
commit 8891015e00

@ -338,11 +338,7 @@ export class Boundary {
onerror?.(error, reset); onerror?.(error, reset);
calling_on_error = false; calling_on_error = false;
} catch (error) { } catch (error) {
if (this.#effect !== null) { invoke_error_boundary(error, this.#effect && this.#effect.parent);
invoke_error_boundary(error, this.#effect.parent);
} else {
throw error;
}
} finally { } finally {
set_active_reaction(previous_reaction); set_active_reaction(previous_reaction);
} }

Loading…
Cancel
Save