mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibJS: Make more Interpreter functions take a GlobalObject&
This commit is contained in:
parent
053863f35e
commit
5042e560ef
Notes:
sideshowbarker
2024-07-19 05:44:44 +09:00
Author: https://github.com/awesomekling
Commit: 5042e560ef
9 changed files with 47 additions and 47 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue