Repository navigation
Commit 5a10e3d
committed
fix(compiler): unwrap ExportNamedDeclaration in strong-effect var region marking
The mark() function inside varInitialized only handled direct
VariableDeclaration statements. A module-level `export var` is wrapped
in an ExportNamedDeclaration, so its inner VariableDeclaration was never
registered in varRegions. This caused varInitialized to return false for
exported var bindings, misclassifying them as possibly undefined.1 parent af1b293 commit 5a10e3d
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| 237 | + | |
237 | 238 | | |
238 | 239 | | |
239 | 240 | | |
| |||
0 commit comments