summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/Temporal/Now.h
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-09-17 21:04:21 +0200
committerLinus Groh <mail@linusgroh.de>2021-09-17 23:43:01 +0200
commit6bdd62b51b65675151d44f60219b45f927bb5f9b (patch)
treee5d31efeeeb91b26cc7c8133ffa1cde4c4f524eb /Userland/Libraries/LibJS/Runtime/Temporal/Now.h
parentd764f1c69932b7c6f76ed726b5de54ddad164f2b (diff)
downloadserenity-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.h5
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);
}