Commit fec80ce
[JSC] Refactor Temporal calendar annotation key parsing
https://bugs.webkit.org/show_bug.cgi?id=223166
Reviewed by Justin Michaud and Sosuke Suzuki.
This does not change anything currently, but is groundwork for
implementing a normative change to the Temporal proposal:
tc39/proposal-temporal#2397
It changes parseCalendar() to handle unknown annotation keys and known
annotation keys with the `!` critical flag. (Although those are still
disallowed by canBeCalendar() at this time, I will send a follow-up PR
for that.)
Note this code was already submitted as part of
#36361 which I'm trying to split up
into smaller, more easily reviewable parts.
* Source/JavaScriptCore/runtime/ISO8601.cpp:
(JSC::ISO8601::parseCalendar):
Canonical link: https://commits.webkit.org/293522@main1 parent e6cbba0 commit fec80ce
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
779 | 779 | | |
780 | 780 | | |
781 | 781 | | |
782 | | - | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
783 | 792 | | |
784 | 793 | | |
785 | 794 | | |
786 | 795 | | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
787 | 799 | | |
788 | 800 | | |
789 | 801 | | |
| |||
0 commit comments