mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:47:45 +00:00
LibJS: Port create_temporal_time_zone() to String
This commit is contained in:
parent
ae98eddc9f
commit
5a2dfc52f8
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