test262/test/built-ins/Temporal/PlainYearMonth
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
..
compare Temporal: Add tests for avoiding observable iteration in CalendarFields 2022-10-11 12:23:47 +02:00
from Temporal: Add tests for avoiding observable iteration in CalendarFields 2022-10-11 12:23:47 +02:00
prototype Temporal: Add tests for avoiding observable iteration in CalendarFields 2022-10-11 12:23:47 +02:00
basic.js Test PlainYearMonth constructor, from. 2022-01-28 13:17:31 -05:00
builtin.js Add Temporal tests 2021-10-01 14:30:12 -04:00
calendar-always.js Ensure reference data is emitted when calendarName = 'always' 2022-03-29 16:58:36 -07:00
calendar-case-insensitive.js Apply suggestions from code review 2022-09-13 11:32:16 -07:00
calendar-invalid.js Add Temporal tests 2021-10-01 14:30:12 -04:00
calendar-number.js Test conversion of Number to Temporal objects 2022-04-21 12:14:10 -07:00
calendar-string.js Temporal: Add tests for casting a calendar ID string to a Temporal.Calendar 2022-08-01 13:48:11 -07:00
calendar-temporal-object.js Add Temporal tests 2021-10-01 14:30:12 -04:00
calendar-undefined.js Add Temporal tests 2021-10-01 14:30:12 -04:00
calendar-wrong-type.js Test wrong types in conversions to Temporal types 2022-04-21 12:14:10 -07:00
constructor.js Pass arguments in PlainYearMonth constructor test. 2022-01-28 13:17:31 -05:00
infinity-throws-rangeerror.js Add Temporal tests 2021-10-01 14:30:12 -04:00
length.js Add Temporal tests 2021-10-01 14:30:12 -04:00
limits.js Add reference ISO days to PlainYearMonth assertions 2022-05-04 10:15:19 +02:00
missing-arguments.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
negative-infinity-throws-rangeerror.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
refisoday-undefined.js Add Temporal tests 2021-10-01 14:30:12 -04:00
subclass.js Fixed #3545 2022-05-31 16:28:31 +02:00