You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9d4e00b
Browse filesBrowse the repository at this point in the historyBrowse files
fix(ast): find_free_vars walks loops, assignments and pattern binders
Statements other than `let` and expression statements were skipped, so a
name used only inside a `for`/`while` body (or an assignment) was never
reported free. Import flattening then dropped the private helper it named:
a public `create` calling `apply_attr` in a for-loop compiled to
`ReferenceError: apply_attr is not defined` on Bun-ESM. The same walker
drives closure conversion, which could likewise miss a capture.
Also bind every variable of a destructuring `let` and of match-arm
patterns (and walk guards), instead of only plain `PatVar` lets.
dune test main suite 553 OK; Bun-ESM 34/34; WASM 38/38.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments