diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp index 23d0761272..8d7c1cf476 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp +++ b/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp @@ -211,7 +211,7 @@ Optional> get_string_or_number_option(GlobalObject& } // 13.6 ToTemporalOverflow ( normalizedOptions ), https://tc39.es/proposal-temporal/#sec-temporal-totemporaloverflow -Optional to_temporal_overflow(GlobalObject& global_object, Object& normalized_options) +Optional to_temporal_overflow(GlobalObject& global_object, Object const& normalized_options) { auto& vm = global_object.vm(); @@ -225,7 +225,7 @@ Optional to_temporal_overflow(GlobalObject& global_object, Object& norma } // 13.8 ToTemporalRoundingMode ( normalizedOptions, fallback ), https://tc39.es/proposal-temporal/#sec-temporal-totemporalroundingmode -Optional to_temporal_rounding_mode(GlobalObject& global_object, Object& normalized_options, String const& fallback) +Optional to_temporal_rounding_mode(GlobalObject& global_object, Object const& normalized_options, String const& fallback) { auto& vm = global_object.vm(); @@ -239,7 +239,7 @@ Optional to_temporal_rounding_mode(GlobalObject& global_object, Object& } // 13.11 ToShowCalendarOption ( normalizedOptions ), https://tc39.es/proposal-temporal/#sec-temporal-toshowcalendaroption -Optional to_show_calendar_option(GlobalObject& global_object, Object& normalized_options) +Optional to_show_calendar_option(GlobalObject& global_object, Object const& normalized_options) { auto& vm = global_object.vm(); @@ -253,7 +253,7 @@ Optional to_show_calendar_option(GlobalObject& global_object, Object& no } // 13.14 ToTemporalRoundingIncrement ( normalizedOptions, dividend, inclusive ), https://tc39.es/proposal-temporal/#sec-temporal-totemporalroundingincrement -u64 to_temporal_rounding_increment(GlobalObject& global_object, Object& normalized_options, Optional dividend, bool inclusive) +u64 to_temporal_rounding_increment(GlobalObject& global_object, Object const& normalized_options, Optional dividend, bool inclusive) { auto& vm = global_object.vm(); @@ -307,7 +307,7 @@ u64 to_temporal_rounding_increment(GlobalObject& global_object, Object& normaliz } // 13.16 ToSecondsStringPrecision ( normalizedOptions ), https://tc39.es/proposal-temporal/#sec-temporal-tosecondsstringprecision -Optional to_seconds_string_precision(GlobalObject& global_object, Object& normalized_options) +Optional to_seconds_string_precision(GlobalObject& global_object, Object const& normalized_options) { auto& vm = global_object.vm(); @@ -403,7 +403,7 @@ static HashMap plural_to_singular_units = { }; // 13.17 ToLargestTemporalUnit ( normalizedOptions, disallowedUnits, fallback [ , autoValue ] ), https://tc39.es/proposal-temporal/#sec-temporal-tolargesttemporalunit -Optional to_largest_temporal_unit(GlobalObject& global_object, Object& normalized_options, Vector const& disallowed_units, String const& fallback, Optional auto_value) +Optional to_largest_temporal_unit(GlobalObject& global_object, Object const& normalized_options, Vector const& disallowed_units, String const& fallback, Optional auto_value) { auto& vm = global_object.vm(); @@ -443,7 +443,7 @@ Optional to_largest_temporal_unit(GlobalObject& global_object, Object& n } // 13.18 ToSmallestTemporalUnit ( normalizedOptions, disallowedUnits, fallback ), https://tc39.es/proposal-temporal/#sec-temporal-tosmallesttemporalunit -Optional to_smallest_temporal_unit(GlobalObject& global_object, Object& normalized_options, Vector const& disallowed_units, Optional fallback) +Optional to_smallest_temporal_unit(GlobalObject& global_object, Object const& normalized_options, Vector const& disallowed_units, Optional 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 3904ed0e3e..cd284c875d 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.h +++ b/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.h @@ -88,13 +88,13 @@ Object* get_options_object(GlobalObject&, Value options); Value get_option(GlobalObject&, Object const& options, PropertyName const& property, Vector const& types, Vector const& values, Value fallback); template 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); -u64 to_temporal_rounding_increment(GlobalObject&, Object& normalized_options, Optional dividend, bool inclusive); -Optional to_seconds_string_precision(GlobalObject&, Object& normalized_options); -Optional to_largest_temporal_unit(GlobalObject&, Object& normalized_options, Vector const& disallowed_units, String const& fallback, Optional auto_value); -Optional to_smallest_temporal_unit(GlobalObject&, Object& normalized_options, Vector const& disallowed_units, Optional fallback); +Optional to_temporal_overflow(GlobalObject&, Object const& normalized_options); +Optional to_temporal_rounding_mode(GlobalObject&, Object const& normalized_options, String const& fallback); +Optional to_show_calendar_option(GlobalObject&, Object const& normalized_options); +u64 to_temporal_rounding_increment(GlobalObject&, Object const& normalized_options, Optional dividend, bool inclusive); +Optional to_seconds_string_precision(GlobalObject&, Object const& normalized_options); +Optional to_largest_temporal_unit(GlobalObject&, Object const& normalized_options, Vector const& disallowed_units, String const& fallback, Optional auto_value); +Optional to_smallest_temporal_unit(GlobalObject&, Object const& normalized_options, Vector const& disallowed_units, Optional fallback); void validate_temporal_unit_range(GlobalObject&, StringView largest_unit, StringView smallest_unit); String larger_of_two_temporal_units(StringView, StringView); Optional maximum_temporal_duration_rounding_increment(StringView unit);