mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 11:37:16 +02:00
LibJS: Update for structured headers added to various Temporal AOs
This is an editorial change in the Temporal spec. See: https://github.com/tc39/proposal-temporal/commit/e6a15a5
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 16:23:55 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/70593b7448 Pull-request: https://github.com/SerenityOS/serenity/pull/13837 Reviewed-by: https://github.com/IdanHo ✅ Reviewed-by: https://github.com/Lubrsi ✅
@@ -226,7 +226,7 @@ ThrowCompletionOr<DateTimeFormat*> initialize_date_time_format(GlobalObject& glo
|
||||
// a. Set timeZone to ? ToString(timeZone).
|
||||
time_zone = TRY(time_zone_value.to_string(global_object));
|
||||
|
||||
// b. If the result of ! IsValidTimeZoneName(timeZone) is false, then
|
||||
// b. If the result of IsValidTimeZoneName(timeZone) is false, then
|
||||
if (!Temporal::is_valid_time_zone_name(time_zone)) {
|
||||
// i. Throw a RangeError exception.
|
||||
return vm.throw_completion<RangeError>(global_object, ErrorType::OptionIsNotValidValue, time_zone, vm.names.timeZone);
|
||||
|
||||
Reference in New Issue
Block a user