Enable Intl.Era-monthcode and implement 7 new calendar systems (+2,498 test262 passes) by lahma · Pull Request #2344 · sebastienros/jint (original) (raw)
and others added 3 commits
…lendars (+2,362 test262 passes)
- Remove Intl.Era-monthcode from ExcludedFeatures, enabling ~3,000 new test cases
- Implement Coptic, Ethiopic, EthioAA calendars (13-month epoch-day arithmetic)
- Implement Indian (Saka) calendar with March 22 new year
- Implement Islamic Umm al-Qura calendar via .NET UmAlQuraCalendar
- Move Islamic Civil/Tbla from TemporalHelpers to NonIsoCalendars with full CalendarDateAdd/CalendarDateUntil support
- Fix Buddhist/ROC year conversion in CalendarDateToISO and PlainYearMonth
- Fix Japanese era determination to use full date boundaries (month/day)
- Fix Islamic epoch consistency (off-by-one) and tbla IsoToCalendarDate epoch
- Fix Islamic month extraction to match forward JDN formula
- Fix backward month counting in CalendarDateUntil for cross-year differences
- Fix CalendarDateUntil wrapping-at-end-of-month for constrained days
- Support era/eraYear in with() for PlainDate, PlainDateTime, PlainYearMonth
- Route buddhist/roc/japanese with() through CalendarDateToISO
Result: 95,662 passed (+2,362), 0 failures, 362 remaining era exclusions
Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com
…ing (+148 tests)
- Fix backward month counting direction in CalendarDateUntil
- Fix year wrapping: constrained day prevents counting a full year
- Fix month wrapping: constrained day prevents counting a full month (matches ISO ISODateSurpasses behavior for non-ISO calendars)
- Replace Islamic ceil(29.5001) month approximation with exact cumulative month lengths (30,29,30,29...) in both forward and inverse conversion
- Fix month extraction in IslamicCivilToCalendarDate to use cumulative month boundaries matching IslamicToJdn
Result: 95,810 passed (+2,510 from baseline), 288 remaining era exclusions
Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com
…onths
- Year constraining now checks MonthCode (not ordinal Month) to properly detect leap month constraining (e.g., M05L → M05 when target year has no leap month should not count as 1 year)
- Month constraining checks day direction to detect day-at-end-of-month wrapping without false positives for intercalary month transitions
Result: 95,798 passed (+2,498 from baseline), 294 remaining era exclusions
Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com
lahma deleted the more-test262 branch
This was referenced
Mar 23, 2026
This was referenced
Jun 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})