mirror of https://github.com/tc39/test262.git
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:
parent
6f8f6b5261
commit
70cdc562e3
|
@ -59,5 +59,5 @@ date = Temporal.PlainDate.from({
|
||||||
calendar: "japanese"
|
calendar: "japanese"
|
||||||
});
|
});
|
||||||
assert.sameValue(`${ date }`, "1868-01-01[u-ca=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);
|
assert.sameValue(date.eraYear, 1868);
|
||||||
|
|
Loading…
Reference in New Issue