commit cfb69b7491f15d70473d488ffc062f9adb541f07
parent 584dd6fe83c9eb57869275809bf40851555e26e0
Author: André Bargull <andre.bargull@gmail.com>
Date: Thu, 27 Nov 2025 10:03:38 +0000
Bug 1999316 - Part 6: Remove era aliases for ROC calendar. r=spidermonkey-reviewers,mgaudet
Remove aliases per <https://github.com/tc39/proposal-intl-era-monthcode/pull/72>.
Differential Revision: https://phabricator.services.mozilla.com/D272036
Diffstat:
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/js/src/builtin/temporal/Calendar.cpp b/js/src/builtin/temporal/Calendar.cpp
@@ -762,7 +762,7 @@ static mozilla::Maybe<EraCode> CanonicalizeEraInCalendar(
MOZ_ASSERT(CalendarSupportsEra(calendar));
// Note: Assigning MaxLength to EraNameMaxLength() breaks the CDT indexer.
- constexpr size_t MaxLength = 24;
+ constexpr size_t MaxLength = 8;
static_assert(MaxLength >= EraNameMaxLength(),
"Storage size is at least as large as the largest known era");
diff --git a/js/src/builtin/temporal/Era.h b/js/src/builtin/temporal/Era.h
@@ -135,13 +135,10 @@ inline constexpr auto Persian = {
inline constexpr auto ROC = {
"roc"sv,
- "minguo"sv,
};
inline constexpr auto ROCInverse = {
"broc"sv,
- "before-roc"sv,
- "minguo-qian"sv,
};
} // namespace names
} // namespace eras