mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +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:
@@ -58,9 +58,9 @@ NativeFunction::~NativeFunction()
|
||||
{
|
||||
}
|
||||
|
||||
Value NativeFunction::call(Interpreter& interpreter)
|
||||
Value NativeFunction::call()
|
||||
{
|
||||
return m_native_function(interpreter, global_object());
|
||||
return m_native_function(interpreter(), global_object());
|
||||
}
|
||||
|
||||
Value NativeFunction::construct(Interpreter&, Function&)
|
||||
|
||||
Reference in New Issue
Block a user