diff options
author | Linus Groh <mail@linusgroh.de> | 2022-03-29 22:56:03 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-03-29 22:56:03 +0100 |
commit | e4fe60b97205d4afc6c45eb87cb53362ffe7287a (patch) | |
tree | 9f3a6a4d0b84ba8b6fd1af522fc1695e6ee045e2 /Userland | |
parent | c637795888d7c245f291a9684c47fa9133ddfc44 (diff) | |
download | serenity-e4fe60b97205d4afc6c45eb87cb53362ffe7287a.zip |
LibJS: Update incorrect spec comment in ToRelativeTemporalObject
This is a normative change in the Temporal spec.
See: https://github.com/tc39/proposal-temporal/commit/4cb192d
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp index 4099ee76f3..3617320819 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp +++ b/Userland/Libraries/LibJS/Runtime/Temporal/AbstractOperations.cpp @@ -666,9 +666,7 @@ ThrowCompletionOr<Value> to_relative_temporal_object(GlobalObject& global_object // f. If timeZoneName is not undefined, then if (time_zone_name.has_value()) { - // i. If ParseText(StringToCodePoints(timeZoneName), TimeZoneNumericUTCOffset) is not a List of errors, then - // FIXME: Logic error in the spec (check for no errors -> check for errors). - // See: https://github.com/tc39/proposal-temporal/pull/2000 + // i. If ParseText(StringToCodePoints(timeZoneName), TimeZoneNumericUTCOffset) is a List of errors, then if (!is_valid_time_zone_numeric_utc_offset_syntax(*time_zone_name)) { // 1. If ! IsValidTimeZoneName(timeZoneName) is false, throw a RangeError exception. if (!is_valid_time_zone_name(*time_zone_name)) |