diff options
Diffstat (limited to 'Libraries/LibJS/Runtime/DateConstructor.cpp')
-rw-r--r-- | Libraries/LibJS/Runtime/DateConstructor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Libraries/LibJS/Runtime/DateConstructor.cpp b/Libraries/LibJS/Runtime/DateConstructor.cpp index c17e84c47e..17993bc1f9 100644 --- a/Libraries/LibJS/Runtime/DateConstructor.cpp +++ b/Libraries/LibJS/Runtime/DateConstructor.cpp @@ -157,12 +157,12 @@ DateConstructor::~DateConstructor() { } -Value DateConstructor::call(Interpreter& interpreter) +Value DateConstructor::call() { - auto date = construct(interpreter, *this); + auto date = construct(interpreter(), *this); if (!date.is_object()) return {}; - return js_string(interpreter, static_cast<Date&>(date.as_object()).string()); + return js_string(heap(), static_cast<Date&>(date.as_object()).string()); } Value DateConstructor::construct(Interpreter& interpreter, Function&) |