Skip to content

Commit

Permalink
Temporal: Test coverage for rejecting too large dates in PlainMonthDa…
Browse files Browse the repository at this point in the history
…y strings

This adds coverage for the normative change in
tc39/proposal-temporal#3054, which specifies that
implementations must throw on out-of-range dates in RFC 9557 strings for
non-ISO calendars.
  • Loading branch information
ptomato committed Feb 5, 2025
1 parent bc5c141 commit ab9172d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions harness/temporalHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]",
];
},

Expand Down Expand Up @@ -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]",
];
},

Expand Down

0 comments on commit ab9172d

Please sign in to comment.