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:
@@ -159,13 +159,13 @@ DateConstructor::~DateConstructor()
|
||||
|
||||
Value DateConstructor::call()
|
||||
{
|
||||
auto date = construct(interpreter(), *this);
|
||||
auto date = construct(*this);
|
||||
if (!date.is_object())
|
||||
return {};
|
||||
return js_string(heap(), static_cast<Date&>(date.as_object()).string());
|
||||
}
|
||||
|
||||
Value DateConstructor::construct(Interpreter&, Function&)
|
||||
Value DateConstructor::construct(Function&)
|
||||
{
|
||||
if (vm().argument_count() == 0) {
|
||||
struct timeval tv;
|
||||
|
||||
Reference in New Issue
Block a user