Closed Bug 1999316 Opened 5 months ago Closed 4 months ago

Implement Intl era and monthCode proposal, draft Nov 7, 2025

Categories

(Core :: JavaScript: Standard Library, task, P1)

task

Tracking

()

RESOLVED FIXED
147 Branch
Tracking Status
firefox147 --- fixed

People

(Reporter: anba, Assigned: anba)

References

(Blocks 1 open bug)

Details

Attachments

(8 files)

No description provided.

Rename CalendarEraStartsAtYearBoundary to CalendarHasMidYearEras to match
the spec.

Also rename CalendarEraStartsAtYearBoundary to IsJapaneseEraName.

Both functions can no longer throw when we've updated to a more recent ICU4X.

Also adds CalendarDateWithOrdinalMonth instead of reusing ISODate.

Add eras specified in the proposal, except for the ones which will be removed
in https://github.com/tc39/proposal-intl-era-monthcode/pull/72.

Severity: -- → N/A
Priority: -- → P1
Blocks: 2000201
Pushed by andre.bargull@gmail.com: https://github.com/mozilla-firefox/firefox/commit/090cc6a8816c https://hg.mozilla.org/integration/autoland/rev/56fce3115cbe Part 1: Remove workarounds for fixed ICU4X bugs. r=spidermonkey-reviewers,mgaudet https://github.com/mozilla-firefox/firefox/commit/18d4db910547 https://hg.mozilla.org/integration/autoland/rev/a7cec9975d2a Part 2: Add IsValidMonthCodeForCalendar. r=spidermonkey-reviewers,mgaudet https://github.com/mozilla-firefox/firefox/commit/6fbded534bc2 https://hg.mozilla.org/integration/autoland/rev/e4090be6be13 Part 3: Add CalendarHasMidYearEras. r=spidermonkey-reviewers,mgaudet https://github.com/mozilla-firefox/firefox/commit/c239c1f224a3 https://hg.mozilla.org/integration/autoland/rev/27815ed3d67e Part 4: CalendarDateYear and CalendarDateMonthCode are infallible. r=spidermonkey-reviewers,mgaudet https://github.com/mozilla-firefox/firefox/commit/584dd6fe83c9 https://hg.mozilla.org/integration/autoland/rev/eb66a9f88801 Part 5: Support eras for more calendars. r=spidermonkey-reviewers,mgaudet https://github.com/mozilla-firefox/firefox/commit/cfb69b7491f1 https://hg.mozilla.org/integration/autoland/rev/5e728f04a100 Part 6: Remove era aliases for ROC calendar. r=spidermonkey-reviewers,mgaudet https://github.com/mozilla-firefox/firefox/commit/5b793020cc6e https://hg.mozilla.org/integration/autoland/rev/bfae91d91969 Part 7: Remove no longer needed shell-option to enable Temporal. r=spidermonkey-reviewers,mgaudet https://github.com/mozilla-firefox/firefox/commit/8b8a7b5ef2b8 https://hg.mozilla.org/integration/autoland/rev/7710efd65bec Part 8: Enable now passing tests. r=spidermonkey-reviewers,mgaudet
Regressions: 2003998
QA Whiteboard: [qa-triage-done-c148/b147]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: