test262/test/built-ins/Temporal/PlainDateTime/compare
Philip Chimento 01f73e96ca Temporal: Add tests for avoiding observable iteration in CalendarFields
See https://github.com/tc39/proposal-temporal/pull/2316 which eliminated
an observable call to Array.prototype[Symbol.iterator]() in the case where
a calendar's 'fields' property was undefined.

The best way I've thought of to test this is to monkeypatch the
Array.prototype[Symbol.iterator]() method to make it throw. In some cases,
where we are actually expected to iterate the return value from a
Temporal.TimeZone's getPossibleInstantsFor() method, we have to provide a
custom method for that as well, that returns a non-Array iterable so we
don't call the patched Array.prototype[Symbol.iterator]().

This normative change reached consensus at the July 2022 TC39 plenary
meeting.
2022-10-11 12:23:47 +02:00
..
argument-calendar-fields-undefined.js Temporal: Add tests for avoiding observable iteration in CalendarFields 2022-10-11 12:23:47 +02:00
argument-number.js Test conversion of Number to Temporal objects 2022-04-21 12:14:10 -07:00
argument-object-insufficient-data.js Port some basic Temporal.PlainDateTime tests from Demitasse to test262 (#3430) 2022-03-21 12:16:18 -07:00
argument-plaindate.js Add Temporal tests 2021-10-01 14:30:12 -04:00
argument-propertybag-calendar-leap-second.js Regularize leap second tests 2022-05-03 08:18:02 +02:00
argument-propertybag-calendar-number.js Test conversion of Number to Temporal objects 2022-04-21 12:14:10 -07:00
argument-propertybag-calendar-string.js Temporal: Add tests for casting a calendar ID string to a Temporal.Calendar 2022-08-01 13:48:11 -07:00
argument-propertybag-calendar-wrong-type.js Test wrong types in conversions to Temporal types 2022-04-21 12:14:10 -07:00
argument-propertybag-calendar-year-zero.js Regularize year zero tests 2022-05-03 08:18:02 +02:00
argument-string-calendar-annotation.js Temporal: Add tests for calendar annotation with critical flag 2022-10-11 12:19:49 +02:00
argument-string-critical-unknown-annotation.js Temporal: Add tests for unknown annotation with critical flag 2022-10-11 12:19:49 +02:00
argument-string-multiple-time-zone.js Temporal: Add tests for multiple time zone annotations 2022-10-11 12:19:49 +02:00
argument-string-time-separators.js Temporal: Add tests for variant time separators 2022-05-23 11:47:56 +02:00
argument-string-time-zone-annotation.js Temporal: Add tests for time zone annotation with critical flag 2022-10-11 12:19:49 +02:00
argument-string-unknown-annotation.js Temporal: Add tests for unknown annotation without critical flag 2022-10-11 12:19:49 +02:00
argument-string-with-utc-designator.js Test rejection of "Z" UTC designators in Plain strings 2021-12-14 13:39:19 -05:00
argument-wrong-type.js Test wrong types in conversions to Temporal types 2022-04-21 12:14:10 -07:00
argument-zoneddatetime-negative-epochnanoseconds.js Add Temporal tests 2021-10-01 14:30:12 -04:00
argument-zoneddatetime-timezone-getoffsetnanosecondsfor-non-integer.js Add Temporal tests 2021-10-01 14:30:12 -04:00
argument-zoneddatetime-timezone-getoffsetnanosecondsfor-not-callable.js Fix not-callable getOffsetNansecondsFor tests 2021-11-30 14:36:59 -05:00
argument-zoneddatetime-timezone-getoffsetnanosecondsfor-out-of-range.js Add Temporal tests 2021-10-01 14:30:12 -04:00
argument-zoneddatetime-timezone-getoffsetnanosecondsfor-wrong-type.js Add Temporal tests 2021-10-01 14:30:12 -04:00
basic.js Temporal: Some more tests for PlainDateTime.compare. 2022-04-12 10:33:20 -07:00
builtin.js Add Temporal tests 2021-10-01 14:30:12 -04:00
calendar-datefromfields-called-with-null-prototype-fields.js Temporal: Test observable calls on fields object from PrepareTemporalFields 2022-06-27 13:51:58 +02:00
calendar-fields-iterable.js Add Temporal tests 2021-10-01 14:30:12 -04:00
calendar-ignored.js Temporal: Some more tests for PlainDateTime.compare. 2022-04-12 10:33:20 -07:00
calendar-temporal-object.js Add Temporal tests 2021-10-01 14:30:12 -04:00
cast.js Port some basic Temporal.PlainDateTime tests from Demitasse to test262 (#3430) 2022-03-21 12:16:18 -07:00
infinity-throws-rangeerror.js Add Temporal tests 2021-10-01 14:30:12 -04:00
leap-second.js Regularize leap second tests 2022-05-03 08:18:02 +02:00
length.js Add Temporal tests 2021-10-01 14:30:12 -04:00
name.js Add Temporal tests 2021-10-01 14:30:12 -04:00
not-a-constructor.js Add Temporal tests 2021-10-01 14:30:12 -04:00
prop-desc.js Add Temporal tests 2021-10-01 14:30:12 -04:00
read-time-fields-before-datefromfields.js Add Temporal tests 2021-10-01 14:30:12 -04:00
use-internal-slots.js Add Temporal tests 2021-10-01 14:30:12 -04:00
year-zero.js Regularize year zero tests 2022-05-03 08:18:02 +02:00