mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 07:36:50 +00:00
LibJS: Remove Interpreter& argument to Function::construct()
This is no longer needed, we can get everything we need from the VM.
This commit is contained in:
@@ -50,10 +50,10 @@ RegExpConstructor::~RegExpConstructor()
|
||||
|
||||
Value RegExpConstructor::call()
|
||||
{
|
||||
return construct(interpreter(), *this);
|
||||
return construct(*this);
|
||||
}
|
||||
|
||||
Value RegExpConstructor::construct(Interpreter&, Function&)
|
||||
Value RegExpConstructor::construct(Function&)
|
||||
{
|
||||
auto& vm = this->vm();
|
||||
if (!vm.argument_count())
|
||||
|
||||
Reference in New Issue
Block a user