diff options
author | Linus Groh <mail@linusgroh.de> | 2021-09-17 21:04:21 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-09-17 23:43:01 +0200 |
commit | 6bdd62b51b65675151d44f60219b45f927bb5f9b (patch) | |
tree | e5d31efeeeb91b26cc7c8133ffa1cde4c4f524eb /Userland/Libraries/LibJS/Runtime/Temporal/Now.h | |
parent | d764f1c69932b7c6f76ed726b5de54ddad164f2b (diff) | |
download | serenity-6bdd62b51b65675151d44f60219b45f927bb5f9b.zip |
LibJS: Convert Now AOs to ThrowCompletionOr
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Temporal/Now.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Temporal/Now.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/Now.h b/Userland/Libraries/LibJS/Runtime/Temporal/Now.h index 989a0d69ad..c17563432e 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/Now.h +++ b/Userland/Libraries/LibJS/Runtime/Temporal/Now.h @@ -6,6 +6,7 @@ #pragma once +#include <LibJS/Runtime/Completion.h> #include <LibJS/Runtime/Object.h> namespace JS::Temporal { @@ -33,7 +34,7 @@ private: TimeZone* system_time_zone(GlobalObject&); BigInt* system_utc_epoch_nanoseconds(GlobalObject&); Instant* system_instant(GlobalObject&); -PlainDateTime* system_date_time(GlobalObject&, Value temporal_time_zone_like, Value calendar_like); -ZonedDateTime* system_zoned_date_time(GlobalObject&, Value temporal_time_zone_like, Value calendar_like); +ThrowCompletionOr<PlainDateTime*> system_date_time(GlobalObject&, Value temporal_time_zone_like, Value calendar_like); +ThrowCompletionOr<ZonedDateTime*> system_zoned_date_time(GlobalObject&, Value temporal_time_zone_like, Value calendar_like); } |