瀏覽代碼

LibJS: Add a couple of missing specification links to Temporal.Instant

Idan Horowitz 4 年之前
父節點
當前提交
ac8e76be23
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Userland/Libraries/LibJS/Runtime/Temporal/InstantConstructor.cpp

+ 2 - 2
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);
     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)
 JS_DEFINE_NATIVE_FUNCTION(InstantConstructor::from_epoch_microseconds)
 {
 {
     // 1. Set epochMicroseconds to ? ToBigInt(epochMicroseconds).
     // 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);
     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)
 JS_DEFINE_NATIVE_FUNCTION(InstantConstructor::from_epoch_nanoseconds)
 {
 {
     // 1. Set epochNanoseconds to ? ToBigInt(epochNanoseconds).
     // 1. Set epochNanoseconds to ? ToBigInt(epochNanoseconds).