mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-17 07:50:04 +00:00
LibJS: Port create_temporal_time_zone() to String
This commit is contained in:
parent
ae98eddc9f
commit
5a2dfc52f8
Notes:
sideshowbarker
2024-07-17 02:28:18 +09:00
Author: https://github.com/linusg
Commit: 5a2dfc52f8
Pull-request: https://github.com/SerenityOS/serenity/pull/17186
Reviewed-by: https://github.com/trflynn89 ✅
7 changed files with 17 additions and 16 deletions
|
@ -221,7 +221,7 @@ ThrowCompletionOr<ZonedDateTime*> to_temporal_zoned_date_time(VM& vm, Value item
|
|||
}
|
||||
|
||||
// j. Let timeZone be ! CreateTemporalTimeZone(timeZoneName).
|
||||
time_zone = MUST(create_temporal_time_zone(vm, time_zone_name->to_deprecated_string()));
|
||||
time_zone = MUST_OR_THROW_OOM(create_temporal_time_zone(vm, *time_zone_name));
|
||||
|
||||
// k. Let calendar be ? ToTemporalCalendarWithISODefault(result.[[Calendar]]).
|
||||
auto temporal_calendar_like = result.calendar.has_value()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue