Commit 071f651
* fix(runtime): #5839 — PlainYearMonth/PlainMonthDay toLocaleString reject ISO calendar
Per ecma402 HandleDateTimeTemporalYearMonth/HandleDateTimeTemporalMonthDay
(sup-intl.html #1132, #1157), these two types require the instance calendar
to equal the formatter's calendar exactly, with no "iso8601"-is-always-
permitted carve-out (unlike PlainDate/PlainDateTime/ZonedDateTime). An
ISO-calendar PlainYearMonth/PlainMonthDay must always throw RangeError
against the locale default (gregory) calendar.
Fixes test262 intl402/Temporal/{PlainYearMonth,PlainMonthDay}/prototype/
toLocaleString/calendar-mismatch.js "even when instance has the ISO
calendar" cases.
* chore: bump version to 0.5.1212, add changelog for #5839 fix
---------
Co-authored-by: Ralph <ralph@skelpo.com>
1 parent 7398271 commit 071f651
7 files changed
Lines changed: 118 additions & 89 deletions
File tree
- crates/perry-runtime/src/temporal
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
1 | 9 | | |
2 | 10 | | |
3 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
0 commit comments