diff options
Diffstat (limited to 'Libraries/LibJS/Runtime/DateConstructor.cpp')
-rw-r--r-- | Libraries/LibJS/Runtime/DateConstructor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibJS/Runtime/DateConstructor.cpp b/Libraries/LibJS/Runtime/DateConstructor.cpp index 83765da1ac..32b8be3033 100644 --- a/Libraries/LibJS/Runtime/DateConstructor.cpp +++ b/Libraries/LibJS/Runtime/DateConstructor.cpp @@ -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; |