Skip to content

Commit 2d27f50

Browse files
committed
consistent naming
1 parent 08b82f9 commit 2d27f50

File tree

1 file changed

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

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ export function boundary(node, props, boundary_fn) {
6767
// We re-use the effect's fn property to avoid allocation of an additional field
6868
boundary.fn = (/** @type {unknown}} */ error) => {
6969
var onerror = props.onerror;
70-
let failed_snippet = props.failed;
70+
let failed = props.failed;
7171

7272
// If we have nothing to capture the error then re-throw the error
7373
// for another boundary to handle, additionaly, if we're creating
7474
// the fallback and that too fails, then re-throw the error
75-
if ((!onerror && !failed_snippet) || is_creating_fallback) {
75+
if ((!onerror && !failed) || is_creating_fallback) {
7676
throw error;
7777
}
7878

@@ -103,15 +103,15 @@ export function boundary(node, props, boundary_fn) {
103103
}
104104

105105
// Handle the `failed` snippet fallback
106-
if (failed_snippet) {
106+
if (failed) {
107107
// Ensure we create the boundary branch after the catch event cycle finishes
108108
queue_micro_task(() => {
109109
with_boundary(boundary, () => {
110110
boundary_effect = null;
111111
is_creating_fallback = true;
112112
try {
113113
boundary_effect = branch(() => {
114-
failed_snippet(
114+
failed(
115115
anchor,
116116
() => error,
117117
() => reset

0 commit comments

Comments
 (0)