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:
parent
ea7cc70118
commit
20337a34a2
11 changed files with 86 additions and 119 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue