mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 03:37:53 +00:00
LibJS: Make more Interpreter functions take a GlobalObject&
This commit is contained in:
@@ -120,7 +120,7 @@ Value ScriptFunction::call(Interpreter& interpreter)
|
||||
arguments.append({ parameter.name, value });
|
||||
interpreter.current_environment()->set(parameter.name, { value, DeclarationKind::Var });
|
||||
}
|
||||
return interpreter.run(m_body, arguments, ScopeType::Function);
|
||||
return interpreter.run(global_object(), m_body, arguments, ScopeType::Function);
|
||||
}
|
||||
|
||||
Value ScriptFunction::construct(Interpreter& interpreter)
|
||||
|
||||
Reference in New Issue
Block a user