Temporal: Adjust era code of Japanese pre-Meiji era

As of the current state of the Intl Era and Month Codes proposal,
https://tc39.es/proposal-intl-era-monthcode/#sec-temporal-canonicalizeeraincalendar
the canonical name of this era is "japanese".

See: https://github.com/tc39/proposal-temporal/issues/2901
This commit is contained in:
Philip Chimento 2024-09-09 11:59:25 -07:00 committed by Philip Chimento
parent 6f8f6b5261
commit 70cdc562e3
1 changed files with 1 additions and 1 deletions

View File

@ -59,5 +59,5 @@ date = Temporal.PlainDate.from({
calendar: "japanese"
});
assert.sameValue(`${ date }`, "1868-01-01[u-ca=japanese]");
assert.sameValue(date.era, "ce");
assert.sameValue(date.era, "japanese");
assert.sameValue(date.eraYear, 1868);