Temporal: Test coverage for rejecting too large dates in PlainMonthDay strings

This adds coverage for the normative change in
https://github.com/tc39/proposal-temporal/pull/3054, which specifies that
implementations must throw on out-of-range dates in RFC 9557 strings for
non-ISO calendars.
This commit is contained in:
Philip Chimento 2025-02-05 10:12:19 -08:00 committed by Philip Chimento
parent b3f67f4aaf
commit 44d71fbe7d
1 changed files with 8 additions and 0 deletions

View File

@ -1105,6 +1105,10 @@ var TemporalHelpers = {
"11-18[U-CA=iso8601]", "11-18[U-CA=iso8601]",
"11-18[u-CA=iso8601]", "11-18[u-CA=iso8601]",
"11-18[FOO=bar]", "11-18[FOO=bar]",
"-999999-01-01[u-ca=gregory]",
"-999999-01-01[u-ca=chinese]",
"+999999-01-01[u-ca=gregory]",
"+999999-01-01[u-ca=chinese]",
]; ];
}, },
@ -1136,6 +1140,10 @@ var TemporalHelpers = {
"1976-10-01", "1976-10-01",
"--10-01", "--10-01",
"--1001", "--1001",
"-999999-10-01",
"-999999-10-01[u-ca=iso8601]",
"+999999-10-01",
"+999999-10-01[u-ca=iso8601]",
]; ];
}, },