diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp index 04e8d3d058..23d0761272 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp +++ b/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp @@ -174,7 +174,7 @@ Value get_option(GlobalObject& global_object, Object const& options, PropertyNam // 13.4 GetStringOrNumberOption ( options, property, stringValues, minimum, maximum, fallback ), https://tc39.es/proposal-temporal/#sec-getstringornumberoption template -Optional> get_string_or_number_option(GlobalObject& global_object, Object& options, PropertyName const& property, Vector const& string_values, NumberType minimum, NumberType maximum, Value fallback) +Optional> get_string_or_number_option(GlobalObject& global_object, Object const& options, PropertyName const& property, Vector const& string_values, NumberType minimum, NumberType maximum, Value fallback) { auto& vm = global_object.vm(); diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.h b/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.h index deed584a0b..3904ed0e3e 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.h +++ b/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.h @@ -87,7 +87,7 @@ MarkedValueList iterable_to_list_of_type(GlobalObject&, Value items, Vector const& types, Vector const& values, Value fallback); template -Optional> get_string_or_number_option(GlobalObject&, Object& options, PropertyName const& property, Vector const& string_values, NumberType minimum, NumberType maximum, Value fallback); +Optional> get_string_or_number_option(GlobalObject&, Object const& options, PropertyName const& property, Vector const& string_values, NumberType minimum, NumberType maximum, Value fallback); Optional to_temporal_overflow(GlobalObject&, Object& normalized_options); Optional to_temporal_rounding_mode(GlobalObject&, Object& normalized_options, String const& fallback); Optional to_show_calendar_option(GlobalObject&, Object& normalized_options);