diff --git a/Userland/Libraries/LibJS/Runtime/DatePrototype.cpp b/Userland/Libraries/LibJS/Runtime/DatePrototype.cpp index 0a4d6a242b..5af3da296e 100644 --- a/Userland/Libraries/LibJS/Runtime/DatePrototype.cpp +++ b/Userland/Libraries/LibJS/Runtime/DatePrototype.cpp @@ -109,7 +109,7 @@ DatePrototype::~DatePrototype() } // thisTimeValue ( value ), https://tc39.es/ecma262/#thistimevalue -static ThrowCompletionOr this_time_value(GlobalObject& global_object, Value value) +ThrowCompletionOr this_time_value(GlobalObject& global_object, Value value) { // 1. If Type(value) is Object and value has a [[DateValue]] internal slot, then if (value.is_object() && is(value.as_object())) { diff --git a/Userland/Libraries/LibJS/Runtime/DatePrototype.h b/Userland/Libraries/LibJS/Runtime/DatePrototype.h index b4a05ad941..1d2ab58b36 100644 --- a/Userland/Libraries/LibJS/Runtime/DatePrototype.h +++ b/Userland/Libraries/LibJS/Runtime/DatePrototype.h @@ -64,6 +64,7 @@ private: JS_DECLARE_NATIVE_FUNCTION(symbol_to_primitive); }; +ThrowCompletionOr this_time_value(GlobalObject& global_object, Value value); String time_string(double time); String date_string(double time); String time_zone_string(double time);