Skip to content

Commit cfb69b7

Browse files
committed
Bug 1999316 - Part 6: Remove era aliases for ROC calendar. r=spidermonkey-reviewers,mgaudet
Remove aliases per <tc39/proposal-intl-era-monthcode#72>. Differential Revision: https://phabricator.services.mozilla.com/D272036
1 parent 584dd6f commit cfb69b7

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

js/src/builtin/temporal/Calendar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ static mozilla::Maybe<EraCode> CanonicalizeEraInCalendar(
762762
MOZ_ASSERT(CalendarSupportsEra(calendar));
763763

764764
// Note: Assigning MaxLength to EraNameMaxLength() breaks the CDT indexer.
765-
constexpr size_t MaxLength = 24;
765+
constexpr size_t MaxLength = 8;
766766
static_assert(MaxLength >= EraNameMaxLength(),
767767
"Storage size is at least as large as the largest known era");
768768

js/src/builtin/temporal/Era.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,10 @@ inline constexpr auto Persian = {
135135

136136
inline constexpr auto ROC = {
137137
"roc"sv,
138-
"minguo"sv,
139138
};
140139

141140
inline constexpr auto ROCInverse = {
142141
"broc"sv,
143-
"before-roc"sv,
144-
"minguo-qian"sv,
145142
};
146143
} // namespace names
147144
} // namespace eras

0 commit comments

Comments
 (0)