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 a7c46ea commit a80ea10Copy full SHA for a80ea10
packages/svelte/src/compiler/phases/2-analyze/index.js
@@ -804,9 +804,9 @@ const legacy_scope_tweaker = {
804
ancestor.type === 'EachBlock' &&
805
state.analysis.template.scopes.get(ancestor)?.declarations.get(node.name) === binding
806
) {
807
- for (const reference of ancestor.metadata.references) {
808
- if (reference.kind === 'normal') {
809
- reference.kind = 'state';
+ for (const binding of ancestor.metadata.references) {
+ if (binding.kind === 'normal') {
+ binding.kind = 'state';
810
}
811
812
break;
0 commit comments