1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:17:35 +00:00

LibJS: Port create_temporal_time_zone() to String

This commit is contained in:
Linus Groh 2023-01-26 16:06:23 +00:00
parent ae98eddc9f
commit 5a2dfc52f8
7 changed files with 17 additions and 16 deletions

View file

@ -661,7 +661,7 @@ ThrowCompletionOr<Value> to_relative_temporal_object(VM& vm, Object const& optio
}
// ii. 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));
// iii. If result.[[TimeZone]].[[Z]] is true, then
if (result.time_zone.z) {