mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-11 17:37:33 +02:00
Add Script::global_declaration_instantiation() that performs the GDI algorithm using pre-computed name lists and shared function data instead of walking the AST. Runtime checks (has_lexical_declaration, can_declare_global_function, etc.) remain since they depend on global environment state. AnnexB iterates pre-collected candidates and calls set_should_do_additional_annexB_steps() on stored refs. The Interpreter::run(Script&) now calls the Script method instead of the Program method.
11 KiB
11 KiB