mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:07:34 +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:
parent
340a115dfe
commit
f79d4c7347
36 changed files with 73 additions and 61 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue