mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 03:57:15 +02:00
LibJS: Use MUST() where applicable
This commit is contained in:
Notes:
sideshowbarker
2024-07-18 03:07:56 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/4d5bd092ea2 Pull-request: https://github.com/SerenityOS/serenity/pull/10327 Reviewed-by: https://github.com/IdanHo ✅
@@ -805,7 +805,7 @@ ThrowCompletionOr<TemporalInstant> parse_temporal_instant_string(GlobalObject& g
|
||||
// TODO
|
||||
|
||||
// 3. Let result be ! ParseISODateTime(isoString).
|
||||
auto result = parse_iso_date_time(global_object, iso_string).release_value();
|
||||
auto result = MUST(parse_iso_date_time(global_object, iso_string));
|
||||
|
||||
// 4. Let timeZoneResult be ? ParseTemporalTimeZoneString(isoString).
|
||||
auto time_zone_result = TRY(parse_temporal_time_zone_string(global_object, iso_string));
|
||||
|
||||
Reference in New Issue
Block a user