Skip to content

Commit 623fb50

Browse files
committed
tweak
1 parent 011741e commit 623fb50

File tree

1 file changed

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

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ export class Batch {
4747

4848
var current_values = new Map();
4949

50-
// TODO this shouldn't be necessary, but tests fail otherwise,
51-
// presumably because we need a try-finally somewhere
5250
for (const [source, current] of this.current) {
51+
// TODO this shouldn't be necessary, but tests fail otherwise,
52+
// presumably because we need a try-finally somewhere, and the
53+
// source wasn't correctly reverted after the previous batch
5354
source.v = current;
5455
}
5556

0 commit comments

Comments
 (0)