From dbb186bb07576ea4b57a881986dc8bcca31a1ad1 Mon Sep 17 00:00:00 2001 From: Ben Allen Date: Fri, 7 Nov 2025 11:03:43 -0800 Subject: [PATCH] Added Intl.Era-monthcode to features (#4617) * Added Intl.Era-monthcode to features for some non-iso8601-related Temporal calendar tests --- .../Temporal/PlainDate/from/calendar-not-supporting-eras.js | 2 +- test/intl402/Temporal/PlainDate/from/canonicalize-calendar.js | 2 +- test/intl402/Temporal/PlainDate/from/canonicalize-era-codes.js | 2 +- .../Temporal/PlainDate/from/infinity-throws-rangeerror.js | 2 +- .../Temporal/PlainDate/from/one-of-era-erayear-undefined.js | 2 +- test/intl402/Temporal/PlainDate/from/remapping-era.js | 2 +- .../Temporal/PlainDate/prototype/since/canonicalize-calendar.js | 2 +- .../prototype/until/until-across-lunisolar-leap-months.js | 2 +- .../prototype/until/wrapping-at-end-of-month-gregorian.js | 2 +- .../PlainDate/prototype/weekOfYear/non-iso-week-of-year.js | 2 +- .../Temporal/PlainDate/prototype/with/cross-era-boundary.js | 2 +- .../prototype/with/gregorian-mutually-exclusive-fields.js | 2 +- .../prototype/with/japanese-mutually-exclusive-fields.js | 2 +- .../PlainDate/prototype/with/non-iso-calendar-fields.js | 2 +- .../PlainDate/prototype/yearOfWeek/non-iso-week-of-year.js | 2 +- test/intl402/Temporal/PlainYearMonth/from/remapping-era.js | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/test/intl402/Temporal/PlainDate/from/calendar-not-supporting-eras.js b/test/intl402/Temporal/PlainDate/from/calendar-not-supporting-eras.js index ca66b867e1..121b58ce0f 100644 --- a/test/intl402/Temporal/PlainDate/from/calendar-not-supporting-eras.js +++ b/test/intl402/Temporal/PlainDate/from/calendar-not-supporting-eras.js @@ -5,7 +5,7 @@ esid: sec-temporal.plaindate.from description: era and eraYear are ignored (for calendars not using eras) includes: [temporalHelpers.js] -features: [Temporal] +features: [Temporal, Intl.Era-monthcode] ---*/ const result = Temporal.PlainDate.from({ diff --git a/test/intl402/Temporal/PlainDate/from/canonicalize-calendar.js b/test/intl402/Temporal/PlainDate/from/canonicalize-calendar.js index b9e7436062..812f6b0459 100644 --- a/test/intl402/Temporal/PlainDate/from/canonicalize-calendar.js +++ b/test/intl402/Temporal/PlainDate/from/canonicalize-calendar.js @@ -4,7 +4,7 @@ /*--- esid: sec-temporal.plaindate.from description: Calendar ID is canonicalized -features: [Temporal] +features: [Temporal, Intl.Era-monthcode] ---*/ [ diff --git a/test/intl402/Temporal/PlainDate/from/canonicalize-era-codes.js b/test/intl402/Temporal/PlainDate/from/canonicalize-era-codes.js index 38716f8189..40bd470d00 100644 --- a/test/intl402/Temporal/PlainDate/from/canonicalize-era-codes.js +++ b/test/intl402/Temporal/PlainDate/from/canonicalize-era-codes.js @@ -5,7 +5,7 @@ esid: sec-temporal.plaindate.from description: Calendar era code is canonicalized includes: [temporalHelpers.js] -features: [Temporal] +features: [Temporal, Intl.Era-monthcode] ---*/ const date1 = Temporal.PlainDate.from({ diff --git a/test/intl402/Temporal/PlainDate/from/infinity-throws-rangeerror.js b/test/intl402/Temporal/PlainDate/from/infinity-throws-rangeerror.js index 8f0efdcafd..82774eecc0 100644 --- a/test/intl402/Temporal/PlainDate/from/infinity-throws-rangeerror.js +++ b/test/intl402/Temporal/PlainDate/from/infinity-throws-rangeerror.js @@ -5,7 +5,7 @@ description: Throws if eraYear in the property bag is Infinity or -Infinity esid: sec-temporal.plaindate.from includes: [compareArray.js, temporalHelpers.js] -features: [Temporal] +features: [Temporal, Intl.Era-monthcode] ---*/ const base = { era: "ad", month: 5, day: 2, calendar: "gregory" }; diff --git a/test/intl402/Temporal/PlainDate/from/one-of-era-erayear-undefined.js b/test/intl402/Temporal/PlainDate/from/one-of-era-erayear-undefined.js index acf325779e..8ee11cbc64 100644 --- a/test/intl402/Temporal/PlainDate/from/one-of-era-erayear-undefined.js +++ b/test/intl402/Temporal/PlainDate/from/one-of-era-erayear-undefined.js @@ -6,7 +6,7 @@ esid: sec-temporal.plaindate.from description: > Throw a TypeError if only one of era/eraYear fields is present (for calendar using eras) -features: [Temporal] +features: [Temporal, Intl.Era-monthcode] ---*/ const base = { year: 2000, month: 5, day: 2, era: "ce", calendar: "gregory" }; diff --git a/test/intl402/Temporal/PlainDate/from/remapping-era.js b/test/intl402/Temporal/PlainDate/from/remapping-era.js index 8484b275d0..1aca708c0d 100644 --- a/test/intl402/Temporal/PlainDate/from/remapping-era.js +++ b/test/intl402/Temporal/PlainDate/from/remapping-era.js @@ -18,7 +18,7 @@ info: | calendars with regnal eras. includes: [temporalHelpers.js] -features: [Temporal] +features: [Temporal, Intl.Era-monthcode] ---*/ // Based on a test originally by André Bargull diff --git a/test/intl402/Temporal/PlainDate/prototype/since/canonicalize-calendar.js b/test/intl402/Temporal/PlainDate/prototype/since/canonicalize-calendar.js index 992d2865b0..f9964e15c0 100644 --- a/test/intl402/Temporal/PlainDate/prototype/since/canonicalize-calendar.js +++ b/test/intl402/Temporal/PlainDate/prototype/since/canonicalize-calendar.js @@ -4,7 +4,7 @@ /*--- esid: sec-temporal.plaindate.prototype.since description: Calendar ID is canonicalized -features: [Temporal] +features: [Temporal, Intl.Era-monthcode] ---*/ const instance = new Temporal.PlainDate(2024, 7, 2, "islamic-civil"); diff --git a/test/intl402/Temporal/PlainDate/prototype/until/until-across-lunisolar-leap-months.js b/test/intl402/Temporal/PlainDate/prototype/until/until-across-lunisolar-leap-months.js index 714f9e0516..28f0943a4b 100644 --- a/test/intl402/Temporal/PlainDate/prototype/until/until-across-lunisolar-leap-months.js +++ b/test/intl402/Temporal/PlainDate/prototype/until/until-across-lunisolar-leap-months.js @@ -4,7 +4,7 @@ /*--- description: dateUntil works as expected after a leap month in a lunisolar calendar esid: sec-temporal.plaindate.prototype.until -features: [Temporal] +features: [Temporal, Intl.Era-monthcode] ---*/ // 2001 is a leap year in the Chinese calendar with a M04L leap month. diff --git a/test/intl402/Temporal/PlainDate/prototype/until/wrapping-at-end-of-month-gregorian.js b/test/intl402/Temporal/PlainDate/prototype/until/wrapping-at-end-of-month-gregorian.js index 166a58516a..a14e6f1f57 100644 --- a/test/intl402/Temporal/PlainDate/prototype/until/wrapping-at-end-of-month-gregorian.js +++ b/test/intl402/Temporal/PlainDate/prototype/until/wrapping-at-end-of-month-gregorian.js @@ -6,7 +6,7 @@ esid: sec-temporal.plaindate.prototype.until description: > Tests balancing of days to months at end of month (ISO-like non-ISO calendars) includes: [temporalHelpers.js] -features: [Temporal] +features: [Temporal, Intl.Era-monthcode] ---*/ for (const calendar of ["buddhist", "gregory", "japanese", "roc"]) { diff --git a/test/intl402/Temporal/PlainDate/prototype/weekOfYear/non-iso-week-of-year.js b/test/intl402/Temporal/PlainDate/prototype/weekOfYear/non-iso-week-of-year.js index 9636eb6e2b..10448418e9 100644 --- a/test/intl402/Temporal/PlainDate/prototype/weekOfYear/non-iso-week-of-year.js +++ b/test/intl402/Temporal/PlainDate/prototype/weekOfYear/non-iso-week-of-year.js @@ -6,7 +6,7 @@ esid: sec-temporal.plaindate.prototype.weekofyear description: > Temporal.PlainDate.prototype.weekOfYear returns undefined for all non-ISO calendars without a well-defined week numbering system. -features: [Temporal] +features: [Temporal, Intl.Era-monthcode] ---*/ assert.sameValue( diff --git a/test/intl402/Temporal/PlainDate/prototype/with/cross-era-boundary.js b/test/intl402/Temporal/PlainDate/prototype/with/cross-era-boundary.js index 7e3621cc29..820d9b47cf 100644 --- a/test/intl402/Temporal/PlainDate/prototype/with/cross-era-boundary.js +++ b/test/intl402/Temporal/PlainDate/prototype/with/cross-era-boundary.js @@ -4,7 +4,7 @@ /*--- esid: sec-temporal.plaindate.prototype.with description: Behaviour when property bag forms a date out of bounds of the current era -features: [Temporal] +features: [Temporal, Intl.Era-monthcode] ---*/ // Last day of Showa era diff --git a/test/intl402/Temporal/PlainDate/prototype/with/gregorian-mutually-exclusive-fields.js b/test/intl402/Temporal/PlainDate/prototype/with/gregorian-mutually-exclusive-fields.js index 8baa19b594..5e1cc31b8a 100644 --- a/test/intl402/Temporal/PlainDate/prototype/with/gregorian-mutually-exclusive-fields.js +++ b/test/intl402/Temporal/PlainDate/prototype/with/gregorian-mutually-exclusive-fields.js @@ -5,7 +5,7 @@ esid: sec-temporal.plaindate.prototype.with description: Calendar-specific mutually exclusive keys in mergeFields includes: [temporalHelpers.js] -features: [Temporal] +features: [Temporal, Intl.Era-monthcode] ---*/ const instance = new Temporal.PlainDate(1981, 12, 15, "gregory"); diff --git a/test/intl402/Temporal/PlainDate/prototype/with/japanese-mutually-exclusive-fields.js b/test/intl402/Temporal/PlainDate/prototype/with/japanese-mutually-exclusive-fields.js index 5d9426bffc..6d280d72c3 100644 --- a/test/intl402/Temporal/PlainDate/prototype/with/japanese-mutually-exclusive-fields.js +++ b/test/intl402/Temporal/PlainDate/prototype/with/japanese-mutually-exclusive-fields.js @@ -5,7 +5,7 @@ esid: sec-temporal.plaindate.prototype.with description: Calendar-specific mutually exclusive keys in mergeFields includes: [temporalHelpers.js] -features: [Temporal] +features: [Temporal, Intl.Era-monthcode] ---*/ const lastDayOfShowa = Temporal.PlainDate.from({ era: "showa", eraYear: 64, year: 1989, month: 1, monthCode: "M01", day: 7, calendar: "japanese" }); diff --git a/test/intl402/Temporal/PlainDate/prototype/with/non-iso-calendar-fields.js b/test/intl402/Temporal/PlainDate/prototype/with/non-iso-calendar-fields.js index cf49113365..58c715facf 100644 --- a/test/intl402/Temporal/PlainDate/prototype/with/non-iso-calendar-fields.js +++ b/test/intl402/Temporal/PlainDate/prototype/with/non-iso-calendar-fields.js @@ -4,7 +4,7 @@ /*--- esid: sec-temporal.plaindate.prototype.with description: Properties passed to with() are calendar fields, not ISO date -features: [Temporal] +features: [Temporal, Intl.Era-monthcode] ---*/ const instance = new Temporal.PlainDate(2024, 8, 8, "hebrew"); diff --git a/test/intl402/Temporal/PlainDate/prototype/yearOfWeek/non-iso-week-of-year.js b/test/intl402/Temporal/PlainDate/prototype/yearOfWeek/non-iso-week-of-year.js index 051718d148..21a018e906 100644 --- a/test/intl402/Temporal/PlainDate/prototype/yearOfWeek/non-iso-week-of-year.js +++ b/test/intl402/Temporal/PlainDate/prototype/yearOfWeek/non-iso-week-of-year.js @@ -6,7 +6,7 @@ esid: sec-temporal.plaindate.prototype.yearofweek description: > Temporal.PlainDate.prototype.yearOfWeek returns undefined for all non-ISO calendars without a well-defined week numbering system. -features: [Temporal] +features: [Temporal, Intl.Era-monthcode] ---*/ assert.sameValue( diff --git a/test/intl402/Temporal/PlainYearMonth/from/remapping-era.js b/test/intl402/Temporal/PlainYearMonth/from/remapping-era.js index 6b8d9fec97..5330d94837 100644 --- a/test/intl402/Temporal/PlainYearMonth/from/remapping-era.js +++ b/test/intl402/Temporal/PlainYearMonth/from/remapping-era.js @@ -22,7 +22,7 @@ info: | calendars with regnal eras. includes: [temporalHelpers.js] -features: [Temporal] +features: [Temporal, Intl.Era-monthcode] ---*/ // Based on a test originally by André Bargull