Skip to content

Commit 6c2f0f9

Browse files
committed
tweak
1 parent 10b2d64 commit 6c2f0f9

File tree

1 file changed

+2
-2
lines changed
  • packages/svelte/src/internal/client/reactivity

1 file changed

+2
-2
lines changed

packages/svelte/src/internal/client/reactivity/batch.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ export function flushSync(fn) {
444444
e.flush_sync_in_effect();
445445
}
446446

447-
var prev_flushing_sync = is_flushing_sync;
447+
var was_flushing_sync = is_flushing_sync;
448448
is_flushing_sync = true;
449449

450450
try {
@@ -474,7 +474,7 @@ export function flushSync(fn) {
474474
flush_effects();
475475
}
476476
} finally {
477-
is_flushing_sync = prev_flushing_sync;
477+
is_flushing_sync = was_flushing_sync;
478478
}
479479
}
480480

0 commit comments

Comments
 (0)