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 ec016eb commit 8fdb47dCopy full SHA for 8fdb47d
packages/svelte/src/internal/client/dom/blocks/each.js
@@ -481,9 +481,10 @@ function reconcile(
481
for (j = 0; j < length; j += 1) {
482
var k = get_key(array[j], j);
483
if (map.has(k)) {
484
- k = String(k);
485
- if (k.startsWith('[object ')) k = null;
486
- each_key_duplicate(String(j), String(map.get(k)), k);
+ /** @type {string|null} */
+ var key_name = String(k);
+ if (key_name.startsWith('[object ')) key_name = null;
487
+ each_key_duplicate(String(j), String(map.get(k)), key_name);
488
}
489
map.set(k, j);
490
0 commit comments