My working unpac space for OCaml projects in development
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add a case for an out-of-range zoned relativeTo

authored by

Tim Chevalier and committed by
Ms2ger
458f19b1 3548e7f3

+4
+4
vendor/git/test262/test/built-ins/Temporal/Duration/prototype/total/relativeto-date-limits.js
··· 41 41 "maximum date is a valid ISO string for ZonedDateTime relativeTo" 42 42 ); 43 43 44 + relativeTo = "+275760-09-12T00:00:01+00:00[UTC]"; 45 + assert.throws(RangeError, () => instance.total({ unit: "days", relativeTo }), 46 + `${relativeTo} is out of range as a relativeTo argument for total`); 47 + 44 48 relativeTo = { year: -271821, month: 4, day: 19 }; 45 49 const result5 = instance.total({ unit: "days", relativeTo }); 46 50 assert.sameValue(