mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:17:35 +00:00
LibJS: Add missing spec links to System{Instant,UTCEpochNanoseconds}
This commit is contained in:
parent
bece2093f2
commit
8f26f51580
1 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@ TimeZone* system_time_zone(GlobalObject& global_object)
|
||||||
return create_temporal_time_zone(global_object, identifier);
|
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)
|
BigInt* system_utc_epoch_nanoseconds(GlobalObject& global_object)
|
||||||
{
|
{
|
||||||
// 1. Let ns be the approximate current UTC date and time, in nanoseconds since the epoch.
|
// 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));
|
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)
|
Instant* system_instant(GlobalObject& global_object)
|
||||||
{
|
{
|
||||||
// 1. Let ns be ! SystemUTCEpochNanoseconds().
|
// 1. Let ns be ! SystemUTCEpochNanoseconds().
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue