summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibJS/Runtime/Temporal/Instant.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/Instant.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/Instant.cpp
index e8595d553a..3bb375ca83 100644
--- a/Userland/Libraries/LibJS/Runtime/Temporal/Instant.cpp
+++ b/Userland/Libraries/LibJS/Runtime/Temporal/Instant.cpp
@@ -240,9 +240,8 @@ ThrowCompletionOr<String> temporal_instant_to_string(GlobalObject& global_object
// 4. If outputTimeZone is undefined, then
if (output_time_zone.is_undefined()) {
- // TODO: Can this really throw...?
- // a. Set outputTimeZone to ? CreateTemporalTimeZone("UTC").
- output_time_zone = TRY(create_temporal_time_zone(global_object, "UTC"sv));
+ // a. Set outputTimeZone to ! CreateTemporalTimeZone("UTC").
+ output_time_zone = MUST(create_temporal_time_zone(global_object, "UTC"sv));
}
// 5. Let isoCalendar be ! GetISO8601Calendar().