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:
@@ -49,9 +49,9 @@ ProxyConstructor::~ProxyConstructor()
|
||||
{
|
||||
}
|
||||
|
||||
Value ProxyConstructor::call(Interpreter& interpreter)
|
||||
Value ProxyConstructor::call()
|
||||
{
|
||||
interpreter.vm().throw_exception<TypeError>(global_object(), ErrorType::ProxyCallWithNew);
|
||||
vm().throw_exception<TypeError>(global_object(), ErrorType::ProxyCallWithNew);
|
||||
return {};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user