1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 21:57:34 +00:00

LibJS: Make BlockDeclarationInstantiation take a VM&

There's no need for this to require an AST Interpreter.
This commit is contained in:
Andreas Kling 2023-06-16 16:12:11 +02:00
parent 9e95c9892c
commit 4684d3fe54
2 changed files with 4 additions and 5 deletions

View file

@ -313,7 +313,7 @@ public:
ThrowCompletionOr<void> for_each_var_function_declaration_in_reverse_order(ThrowCompletionOrVoidCallback<FunctionDeclaration const&>&& callback) const;
ThrowCompletionOr<void> for_each_var_scoped_variable_declaration(ThrowCompletionOrVoidCallback<VariableDeclaration const&>&& callback) const;
void block_declaration_instantiation(Interpreter&, Environment*) const;
void block_declaration_instantiation(VM&, Environment*) const;
ThrowCompletionOr<void> for_each_function_hoistable_with_annexB_extension(ThrowCompletionOrVoidCallback<FunctionDeclaration&>&& callback) const;