test262/test/built-ins/Temporal/PlainDateTime
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
builtin.js Add Temporal tests 2021-10-01 14:30:12 -04:00
calendar-case-insensitive.js Apply suggestions from code review 2022-09-13 11:32:16 -07: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-full.js Port some basic Temporal.PlainDateTime tests from Demitasse to test262 (#3430) 2022-03-21 12:16:18 -07:00
constructor.js Temporal: Add arguments to constructor tests. 2022-05-25 11:35:10 -07:00
datetime-math.js Port some basic Temporal.PlainDateTime tests from Demitasse to test262 (#3430) 2022-03-21 12:16:18 -07:00
hour-undefined.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
length.js Add Temporal tests 2021-10-01 14:30:12 -04:00
limits.js Temporal: `PlainDateTime`: Port Demitasse tests for bounds 2022-04-25 12:22:49 +02:00
microsecond-undefined.js Port some basic Temporal.PlainDateTime tests from Demitasse to test262 (#3430) 2022-03-21 12:16:18 -07:00
millisecond-undefined.js Port some basic Temporal.PlainDateTime tests from Demitasse to test262 (#3430) 2022-03-21 12:16:18 -07:00
minute-undefined.js Port some basic Temporal.PlainDateTime tests from Demitasse to test262 (#3430) 2022-03-21 12:16:18 -07: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
nanosecond-undefined.js Port some basic Temporal.PlainDateTime tests from Demitasse to test262 (#3430) 2022-03-21 12:16:18 -07:00
negative-infinity-throws-rangeerror.js Add Temporal tests 2021-10-01 14:30:12 -04:00
order-of-operations.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
second-undefined.js Port some basic Temporal.PlainDateTime tests from Demitasse to test262 (#3430) 2022-03-21 12:16:18 -07:00
subclass.js Fixed #3545 2022-05-31 16:28:31 +02:00