mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-23 01:38:56 +00:00
LibJS: Port canonicalize_time_zone_name() to String
This commit is contained in:
parent
96855d53c4
commit
0f5f9acc9c
Notes:
sideshowbarker
2024-07-17 08:43:11 +09:00
Author: https://github.com/linusg
Commit: 0f5f9acc9c
Pull-request: https://github.com/SerenityOS/serenity/pull/17186
Reviewed-by: https://github.com/trflynn89 ✅
6 changed files with 17 additions and 17 deletions
|
@ -203,7 +203,7 @@ ThrowCompletionOr<ZonedDateTime*> to_temporal_zoned_date_time(VM& vm, Value item
|
|||
return vm.throw_completion<RangeError>(ErrorType::TemporalInvalidTimeZoneName, *time_zone_name);
|
||||
|
||||
// ii. Set timeZoneName to ! CanonicalizeTimeZoneName(timeZoneName).
|
||||
time_zone_name = TRY_OR_THROW_OOM(vm, String::from_deprecated_string(canonicalize_time_zone_name(time_zone_name->to_deprecated_string())));
|
||||
time_zone_name = MUST_OR_THROW_OOM(canonicalize_time_zone_name(vm, *time_zone_name));
|
||||
}
|
||||
|
||||
// g. Let offsetString be result.[[TimeZone]].[[OffsetString]].
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue