mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:17:36 +00:00
LibJS: Pass GlobalObject& to AST node execute() functions
More work towards supporting multiple global objects.
This commit is contained in:
parent
92392398a2
commit
25f2a29d84
5 changed files with 178 additions and 179 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue