1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:17:45 +00:00

LibJS: Pass GlobalObject& to AST node execute() functions

More work towards supporting multiple global objects.
This commit is contained in:
Andreas Kling 2020-06-08 20:57:54 +02:00
parent 92392398a2
commit 25f2a29d84
5 changed files with 178 additions and 179 deletions

View file

@ -82,7 +82,7 @@ Value FunctionConstructor::construct(Interpreter& interpreter)
interpreter.throw_exception<SyntaxError>(error.to_string());
return {};
}
return function_expression->execute(interpreter);
return function_expression->execute(interpreter, global_object());
}
}