diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp index 7414e0e8cc..698d9d5076 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp +++ b/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp @@ -253,8 +253,8 @@ ThrowCompletionOr to_calendar_name_option(VM& vm, Object const& normaliz return option.as_string().string(); } -// 13.10 ToShowTimeZoneNameOption ( normalizedOptions ), https://tc39.es/proposal-temporal/#sec-temporal-toshowtimezonenameoption -ThrowCompletionOr to_show_time_zone_name_option(VM& vm, Object const& normalized_options) +// 13.10 ToTimeZoneNameOption ( normalizedOptions ), https://tc39.es/proposal-temporal/#sec-temporal-totimezonenameoption +ThrowCompletionOr to_time_zone_name_option(VM& vm, Object const& normalized_options) { // 1. Return ? GetOption(normalizedOptions, "timeZoneName", "string", « "auto", "never", "critical" », "auto"). auto option = TRY(get_option(vm, normalized_options, vm.names.timeZoneName, OptionType::String, { "auto"sv, "never"sv, "critical"sv }, "auto"sv)); diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.h b/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.h index a457ae6b40..06a426a012 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.h +++ b/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.h @@ -141,7 +141,7 @@ ThrowCompletionOr to_temporal_rounding_mode(VM&, Object const& normalize StringView negate_temporal_rounding_mode(String const& rounding_mode); ThrowCompletionOr to_temporal_offset(VM&, Object const* options, String const& fallback); ThrowCompletionOr to_calendar_name_option(VM&, Object const& normalized_options); -ThrowCompletionOr to_show_time_zone_name_option(VM&, Object const& normalized_options); +ThrowCompletionOr to_time_zone_name_option(VM&, Object const& normalized_options); ThrowCompletionOr to_show_offset_option(VM&, Object const& normalized_options); ThrowCompletionOr to_temporal_rounding_increment(VM&, Object const& normalized_options, Optional dividend, bool inclusive); ThrowCompletionOr to_temporal_date_time_rounding_increment(VM&, Object const& normalized_options, StringView smallest_unit); diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/ZonedDateTimePrototype.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/ZonedDateTimePrototype.cpp index da133100db..452d40ac90 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/ZonedDateTimePrototype.cpp +++ b/Userland/Libraries/LibJS/Runtime/Temporal/ZonedDateTimePrototype.cpp @@ -1086,8 +1086,8 @@ JS_DEFINE_NATIVE_FUNCTION(ZonedDateTimePrototype::to_string) // 6. Let showCalendar be ? ToCalendarNameOption(options). auto show_calendar = TRY(to_calendar_name_option(vm, *options)); - // 7. Let showTimeZone be ? ToShowTimeZoneNameOption(options). - auto show_time_zone = TRY(to_show_time_zone_name_option(vm, *options)); + // 7. Let showTimeZone be ? ToTimeZoneNameOption(options). + auto show_time_zone = TRY(to_time_zone_name_option(vm, *options)); // 8. Let showOffset be ? ToShowOffsetOption(options). auto show_offset = TRY(to_show_offset_option(vm, *options));