mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:07:45 +00:00
LibJS: Mark CreateTemporalTimeZone("UTC") as infallible
This is an editorial change in the Temporal spec.
See: ea25cfa
This commit is contained in:
parent
2255e8859c
commit
64f125fe34
1 changed files with 2 additions and 3 deletions
|
@ -240,9 +240,8 @@ ThrowCompletionOr<String> temporal_instant_to_string(GlobalObject& global_object
|
||||||
|
|
||||||
// 4. If outputTimeZone is undefined, then
|
// 4. If outputTimeZone is undefined, then
|
||||||
if (output_time_zone.is_undefined()) {
|
if (output_time_zone.is_undefined()) {
|
||||||
// TODO: Can this really throw...?
|
// a. Set outputTimeZone to ! CreateTemporalTimeZone("UTC").
|
||||||
// a. Set outputTimeZone to ? CreateTemporalTimeZone("UTC").
|
output_time_zone = MUST(create_temporal_time_zone(global_object, "UTC"sv));
|
||||||
output_time_zone = TRY(create_temporal_time_zone(global_object, "UTC"sv));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 5. Let isoCalendar be ! GetISO8601Calendar().
|
// 5. Let isoCalendar be ! GetISO8601Calendar().
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue