Skip to content

Commit 9675719

Browse files
committed
Refactor closure capture analysis and remove collectCapturedNames
Replaces the collectCapturedNames function with a unified scanNodeForCaptures that supports both local and name modes for closure variable capture analysis. Updates all relevant call sites and improves handling of various node kinds, making closure capture logic more robust and maintainable. Also updates test WAT files to reflect changes in closure environment global naming. Refactor closure function creation logic Removed unused parameters and redundant local set in array rest parameter initialization. Simplified compileClosureFunctionCreation by removing the staticOffset argument, as it is no longer used.
1 parent 8379613 commit 9675719

File tree

3 files changed

+488
-754
lines changed

3 files changed

+488
-754
lines changed

0 commit comments

Comments
 (0)