summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/Temporal/Now.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-07-21 23:47:31 +0100
committerLinus Groh <mail@linusgroh.de>2021-07-22 21:19:40 +0100
commit8f26f5158080911d5cc54e26b34227a8d8123a8b (patch)
tree655493d93f8aa7c2b3cf3cebed765464ad3f5304 /Userland/Libraries/LibJS/Runtime/Temporal/Now.cpp
parentbece2093f220edb56506f087ad50ce86e693f9b9 (diff)
downloadserenity-8f26f5158080911d5cc54e26b34227a8d8123a8b.zip
LibJS: Add missing spec links to System{Instant,UTCEpochNanoseconds}
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Temporal/Now.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/Temporal/Now.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/Now.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/Now.cpp
index 1b378de9b7..0d3eb52191 100644
--- a/Userland/Libraries/LibJS/Runtime/Temporal/Now.cpp
+++ b/Userland/Libraries/LibJS/Runtime/Temporal/Now.cpp
@@ -54,7 +54,7 @@ TimeZone* system_time_zone(GlobalObject& global_object)
return create_temporal_time_zone(global_object, identifier);
}
-// 2.2.2 SystemUTCEpochNanoseconds ( )
+// 2.2.2 SystemUTCEpochNanoseconds ( ), https://tc39.es/proposal-temporal/#sec-temporal-systemutcepochnanoseconds
BigInt* system_utc_epoch_nanoseconds(GlobalObject& global_object)
{
// 1. Let ns be the approximate current UTC date and time, in nanoseconds since the epoch.
@@ -77,7 +77,7 @@ BigInt* system_utc_epoch_nanoseconds(GlobalObject& global_object)
return js_bigint(global_object.heap(), move(ns));
}
-// 2.2.3 SystemInstant ( )
+// 2.2.3 SystemInstant ( ), https://tc39.es/proposal-temporal/#sec-temporal-systeminstant
Instant* system_instant(GlobalObject& global_object)
{
// 1. Let ns be ! SystemUTCEpochNanoseconds().