mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00:00
LibJS: Add notes about lifetime of surrounding agent
This is an editorial change in the Temporal spec. See: https://github.com/tc39/proposal-temporal/commit/54e4abc
This commit is contained in:
parent
76a6bd0e75
commit
df1f81ba90
Notes:
sideshowbarker
2024-07-17 11:26:54 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/df1f81ba90 Pull-request: https://github.com/SerenityOS/serenity/pull/13837 Reviewed-by: https://github.com/IdanHo ✅ Reviewed-by: https://github.com/Lubrsi ✅
1 changed files with 2 additions and 0 deletions
|
@ -197,6 +197,7 @@ BigInt* get_iana_time_zone_next_transition(GlobalObject&, [[maybe_unused]] BigIn
|
|||
{
|
||||
// The implementation-defined abstract operation GetIANATimeZoneNextTransition takes arguments epochNanoseconds (a BigInt) and timeZoneIdentifier (a String) and returns a BigInt or null.
|
||||
// The returned value represents the number of nanoseconds since the Unix epoch in UTC that corresponds to the first time zone transition after epochNanoseconds in the IANA time zone identified by timeZoneIdentifier, or null if no such transition exists.
|
||||
// Given the same values of epochNanoseconds and timeZoneIdentifier, the result must be the same for the lifetime of the surrounding agent.
|
||||
|
||||
// TODO: Implement this
|
||||
return nullptr;
|
||||
|
@ -207,6 +208,7 @@ BigInt* get_iana_time_zone_previous_transition(GlobalObject&, [[maybe_unused]] B
|
|||
{
|
||||
// The implementation-defined abstract operation GetIANATimeZonePreviousTransition takes arguments epochNanoseconds (a BigInt) and timeZoneIdentifier (a String) and returns a BigInt or null.
|
||||
// The returned value represents the number of nanoseconds since the Unix epoch in UTC that corresponds to the last time zone transition before epochNanoseconds in the IANA time zone identified by timeZoneIdentifier, or null if no such transition exists.
|
||||
// Given the same values of epochNanoseconds and timeZoneIdentifier, the result must be the same for the lifetime of the surrounding agent.
|
||||
|
||||
// TODO: Implement this
|
||||
return nullptr;
|
||||
|
|
Loading…
Reference in a new issue