From ac8e76be23bdac0e545df995282eaabe7d3be9b9 Mon Sep 17 00:00:00 2001 From: Idan Horowitz Date: Sat, 10 Jul 2021 16:44:12 +0300 Subject: [PATCH] LibJS: Add a couple of missing specification links to Temporal.Instant --- .../Libraries/LibJS/Runtime/Temporal/InstantConstructor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/InstantConstructor.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/InstantConstructor.cpp index 9472bdc00c..a40e81dc94 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/InstantConstructor.cpp +++ b/Userland/Libraries/LibJS/Runtime/Temporal/InstantConstructor.cpp @@ -119,7 +119,7 @@ JS_DEFINE_NATIVE_FUNCTION(InstantConstructor::from_epoch_milliseconds) return create_temporal_instant(global_object, *epoch_nanoseconds); } -// 8.2.5 Temporal.Instant.fromEpochMicroseconds ( epochMicroseconds ) +// 8.2.5 Temporal.Instant.fromEpochMicroseconds ( epochMicroseconds ), https://tc39.es/proposal-temporal/#sec-temporal.instant.fromepochmicroseconds JS_DEFINE_NATIVE_FUNCTION(InstantConstructor::from_epoch_microseconds) { // 1. Set epochMicroseconds to ? ToBigInt(epochMicroseconds). @@ -140,7 +140,7 @@ JS_DEFINE_NATIVE_FUNCTION(InstantConstructor::from_epoch_microseconds) return create_temporal_instant(global_object, *epoch_nanoseconds); } -// 8.2.6 Temporal.Instant.fromEpochNanoseconds ( epochNanoseconds ) +// 8.2.6 Temporal.Instant.fromEpochNanoseconds ( epochNanoseconds ), https://tc39.es/proposal-temporal/#sec-temporal.instant.fromepochnanoseconds JS_DEFINE_NATIVE_FUNCTION(InstantConstructor::from_epoch_nanoseconds) { // 1. Set epochNanoseconds to ? ToBigInt(epochNanoseconds).