Bug 277942
| Summary: | [JSC] Parse a critical flag on TZ annotation for Temporal | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Sosuke Suzuki <sosuke> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Sosuke Suzuki
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Sosuke Suzuki
Pull request: https://github.com/WebKit/WebKit/pull/32028
EWS
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
<rdar://problem/133802376>