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

LibJS: Convert Instant AOs to ThrowCompletionOr

This commit is contained in:
Linus Groh 2021-09-16 22:32:37 +01:00
parent ea7cc70118
commit 20337a34a2
11 changed files with 86 additions and 119 deletions

View file

@ -192,7 +192,7 @@ Instant* system_instant(GlobalObject& global_object)
auto* ns = system_utc_epoch_nanoseconds(global_object);
// 2. Return ! CreateTemporalInstant(ns).
return create_temporal_instant(global_object, *ns);
return create_temporal_instant(global_object, *ns).release_value();
}
// 2.3.4 SystemDateTime ( temporalTimeZoneLike, calendarLike ), https://tc39.es/proposal-temporal/#sec-temporal-systemdatetime