From df1f81ba90b6cf70d787cfc26e56c0ae7aebc58a Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Fri, 29 Apr 2022 19:11:43 +0200 Subject: [PATCH] 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 --- Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.cpp index 5ff423b9f6..1ba1435c08 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.cpp +++ b/Userland/Libraries/LibJS/Runtime/Temporal/TimeZone.cpp @@ -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;