mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
Now that initialize_environment() uses pre-computed data and execute_module() caches its executable / uses TLA shared data, we can drop the AST reference after it's no longer needed. For TLA modules, the AST is dropped immediately after constructing the SharedFunctionInstanceData (which takes its own ref). For non-TLA modules, the AST is dropped after the first bytecode compilation. Also remove the m_default_export field (replaced by the pre-computed m_default_export_binding_name) and extract default export info in parse() instead of the constructor.