RESOLVED FIXED277942
[JSC] Parse a critical flag on TZ annotation for Temporal
https://bugs.webkit.org/show_bug.cgi?id=277942
Summary [JSC] Parse a critical flag on TZ annotation for Temporal
Sosuke Suzuki
Reported 2024-08-11 23:32:32 PDT
RFC 3339[1] and RFC 9557[2] allows that bracketed timezone annotations include a critical flag(!)[3]. It indicate that the parsing should be rejected if there is a conflict between the offset and the timezone annotation. Temporal API has added this feature into the spec[4]. While the critical flag does not affect the behavior of Temporal, parsing must still succeed. Currently, JSC throws an error when creating a Temporal object from a string that includes a critical flag. [1]: https://www.rfc-editor.org/rfc/rfc3339 [2]: https://www.rfc-editor.org/rfc/rfc9557 [3]: https://www.rfc-editor.org/rfc/rfc9557.html#name-inconsistent-time-offset-an [4]: https://github.com/tc39/proposal-temporal/pull/2397
Attachments
Sosuke Suzuki
Comment 1 2024-08-12 00:11:14 PDT
EWS
Comment 2 2024-08-13 17:51:03 PDT
Committed 282211@main (380f93b87d14): <https://commits.webkit.org/282211@main> Reviewed commits have been landed. Closing PR #32028 and removing active labels.
Radar WebKit Bug Importer
Comment 3 2024-08-13 17:52:14 PDT
Note You need to log in before you can comment on or make changes to this bug.