Skip to content

Commit 61ff8b0

Browse files
committed
Refactor closure capture logic and add closures test config
Refactors closure variable capture logic in compiler.ts for clarity and robustness, including more explicit local variable usage and conversion of capturedNames to a Set. Updates prescanNodeForFunctionExpressions to use an iterative approach to avoid stack overflows. Adds a 'closures' feature entry to tests/features.json for testing closure support.
1 parent 9675719 commit 61ff8b0

2 files changed

Lines changed: 369 additions & 333 deletions

File tree

0 commit comments

Comments
 (0)