Skip to content

Commit 1b07be0

Browse files
committed
Add closure capture support for more statement types
Extended closure variable capture logic in the compiler to handle while, do-while, for, for-of, switch, try/catch/finally, and various expression nodes. Updated test cases to cover closure captures in these new contexts, ensuring correct environment handling and variable scoping for closures in complex control flow and expression scenarios. Found unhandled case of closure with nested arrays.
1 parent d1ce5c9 commit 1b07be0

File tree

4 files changed

+5791
-722
lines changed

4 files changed

+5791
-722
lines changed

0 commit comments

Comments
 (0)