Repository navigation
Commit 7bfa0c7
committed
fix(compiler): unwrap ExportNamedDeclaration in var-region marking
The mark() helper in varInitialized only checked for bare
VariableDeclaration nodes, but export var declarations are wrapped in
ExportNamedDeclaration at module scope. This caused exported var
bindings to be missing from varRegions, making varInitialized return
false and maySettle incorrectly classify await on those bindings as
zero-delay resumes.1 parent 68e3064 commit 7bfa0c7
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
287 | 292 | | |
288 | 293 | | |
289 | 294 | | |
| |||
0 commit comments