test262/test/built-ins/Temporal/PlainYearMonth/from
Philip Chimento 34805283d9 Temporal: Add tests for fast path in ToTemporalCalendar
Normally, a plain object passed into an API that takes a Temporal.Calendar
has its 'calendar' property checked (observably) with a Has operation
followed by a Get operation if the property is present. In the normative
change https://github.com/tc39/proposal-temporal/pull/2392 which reached
consensus at the September 2022 TC39 meeting, this was changed so that
this check is skipped for objects which have the Temporal.Calendar
internal slots.

This adds tests to all entry points that pass a user-supplied object to
ToTemporalCalendar, with a "poisoned" calendar object which has the
correct internal slots but a 'calendar' accessor property whose getter
throws. A correct implementation should not cause this getter to throw.
2022-10-18 14:38:38 +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.js Test PlainYearMonth constructor, from. 2022-01-28 13:17:31 -05:00
argument-plaindate.js Test PlainYearMonth constructor, from. 2022-01-28 13:17:31 -05:00
argument-plainyearmonth.js Temporal: Consistently test that calendar is copied in X.from() 2022-09-21 10:41:14 +02:00
argument-propertybag-calendar-case-insensitive.js Apply suggestions from code review 2022-09-13 11:32:16 -07:00
argument-propertybag-calendar-instance-does-not-get-calendar-property.js Temporal: Add tests for fast path in ToTemporalCalendar 2022-10-18 14:38:38 +02: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-invalid.js Test PlainYearMonth constructor, from. 2022-01-28 13:17:31 -05: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-trailing-junk.js Test PlainYearMonth constructor, from. 2022-01-28 13:17:31 -05: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-string.js Test PlainYearMonth constructor, from. 2022-01-28 13:17:31 -05:00
argument-wrong-type.js Test wrong types in conversions to Temporal types 2022-04-21 12:14:10 -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-temporal-object.js Add Temporal tests 2021-10-01 14:30:12 -04:00
calendar-yearmonthfromfields-called-with-options-undefined.js Add tests ensuring that observable calls are made with options === undefined 2022-04-04 16:24:17 -04: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
limits.js Test limits in PlainYearMonth.from. 2022-02-01 17:58:30 -05: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
options-invalid.js Test PlainYearMonth constructor, from. 2022-01-28 13:17:31 -05:00
options-object.js Added tests for an empty or a function options object 2022-07-28 11:59:50 -07:00
options-undefined.js Add Temporal tests 2021-10-01 14:30:12 -04:00
options-wrong-type.js Add tests for Temporal options bags being of the wrong type 2022-04-13 10:46:20 +02:00
order-of-operations.js Temporal: Add TemporalHelpers.propertyBagObserver() 2022-09-21 10:41:14 +02:00
overflow-constrain.js Test PlainYearMonth constructor, from. 2022-01-28 13:17:31 -05:00
overflow-invalid-string.js Expand overflow-invalid-string.js tests. 2022-03-25 11:18:13 -07:00
overflow-reject.js Test PlainYearMonth constructor, from. 2022-01-28 13:17:31 -05:00
overflow-undefined.js Test PlainYearMonth constructor, from. 2022-01-28 13:17:31 -05:00
overflow-wrong-type.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
subclassing-ignored.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