mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 17:15:08 +00:00
LibJS: Make Function::call() not require an Interpreter&
This makes a difference inside ScriptFunction::call(), which will now instantiate a temporary Interpreter if one is not attached to the VM.
This commit is contained in:
parent
be31805e8b
commit
1ff9d33131
42 changed files with 167 additions and 142 deletions
|
@ -49,9 +49,9 @@ BoundFunction::~BoundFunction()
|
|||
{
|
||||
}
|
||||
|
||||
Value BoundFunction::call(Interpreter& interpreter)
|
||||
Value BoundFunction::call()
|
||||
{
|
||||
return m_target_function->call(interpreter);
|
||||
return m_target_function->call();
|
||||
}
|
||||
|
||||
Value BoundFunction::construct(Interpreter& interpreter, Function& new_target)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue