mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 03:37:53 +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:
@@ -51,9 +51,9 @@ FunctionConstructor::~FunctionConstructor()
|
||||
{
|
||||
}
|
||||
|
||||
Value FunctionConstructor::call(Interpreter& interpreter)
|
||||
Value FunctionConstructor::call()
|
||||
{
|
||||
return construct(interpreter, *this);
|
||||
return construct(interpreter(), *this);
|
||||
}
|
||||
|
||||
Value FunctionConstructor::construct(Interpreter& interpreter, Function&)
|
||||
|
||||
Reference in New Issue
Block a user