mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-28 05:07:35 +00:00
LibJS: Convert Instant AOs to ThrowCompletionOr
This commit is contained in:
parent
ea7cc70118
commit
20337a34a2
Notes:
sideshowbarker
2024-07-18 03:47:33 +09:00
Author: https://github.com/linusg
Commit: 20337a34a2
Pull-request: https://github.com/SerenityOS/serenity/pull/10076
Reviewed-by: https://github.com/IdanHo ✅
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