fix(svelte): preserve scoped reads in keyed each blocks (0.2.4) #489
No reviewers
Labels
No labels
code-review
correctness
dos
performance
security
severity/high
severity/low
severity/medium
tech-debt
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
h-dv/code-index!489
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/svelte-keyed-template-reads"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Simple keyed Svelte loops such as
{#each items as item (item.id)}{item}{message}{/each}discarded their body reads because the header's key was treated as an unknown binding. Recognize only a bounded simple binding list followed by a parenthesized identifier/path key. Evaluate the key under the loop's lexical scope, preserve outer bindings in else branches, and keep compound keys, calls and destructuring explicitly unsupported.Refs #434. Svelte 0.2.4 changes only this package, its recorded bytes/catalog row and its own tests. Resolver authority, ABI, host code, other language packages and CI deadlines are unchanged.
Validation:
A separate startup progress-state failure was preserved during a restart that automatically adopted another producer. It is outside this package repair and is not claimed fixed here.