test262/test/built-ins/Temporal/Calendar
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
..
from Temporal: Add TemporalHelpers.propertyBagObserver() 2022-09-21 10:41:14 +02:00
prototype Temporal: Add tests for avoiding observable iteration in CalendarFields 2022-10-11 12:23:47 +02:00
builtin.js Add Temporal tests 2021-10-01 14:30:12 -04:00
constructor.js Temporal: Add arguments to constructor tests. 2022-05-25 11:35:10 -07:00
length.js Add Temporal tests 2021-10-01 14:30:12 -04: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
prop-desc.js Add Temporal tests 2021-10-01 14:30:12 -04:00
subclass.js Fixed #3545 2022-05-31 16:28:31 +02:00