From 44d71fbe7dccabcc071cbe66cc4b105d896d3c2a Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Wed, 5 Feb 2025 10:12:19 -0800 Subject: [PATCH] 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. --- harness/temporalHelpers.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/harness/temporalHelpers.js b/harness/temporalHelpers.js index b4c0fb1604..be21846e74 100644 --- a/harness/temporalHelpers.js +++ b/harness/temporalHelpers.js @@ -1105,6 +1105,10 @@ var TemporalHelpers = { "11-18[U-CA=iso8601]", "11-18[u-CA=iso8601]", "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", "--10-01", "--1001", + "-999999-10-01", + "-999999-10-01[u-ca=iso8601]", + "+999999-10-01", + "+999999-10-01[u-ca=iso8601]", ]; },