test262/test/built-ins/Temporal/Now
Philip Chimento 1f59bf5911 Temporal: Add tests for fast path in ToTemporalTimeZone
Normally, a plain object passed into an API that takes a Temporal.TimeZone
has its 'timeZone' 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.TimeZone
internal slots.

This adds tests to all entry points that pass a user-supplied object to
ToTemporalTimeZone, with a "poisoned" timeZone object which has the
correct internal slots but a 'timeZone' accessor property whose getter
throws. A correct implementation should not cause this getter to throw.
2022-10-18 14:38:38 +02:00
..
instant Test Temporal.Now. 2022-01-24 13:36:43 -05:00
plainDate Temporal: Add tests for fast path in ToTemporalTimeZone 2022-10-18 14:38:38 +02:00
plainDateISO Temporal: Add tests for fast path in ToTemporalTimeZone 2022-10-18 14:38:38 +02:00
plainDateTime Temporal: Add tests for fast path in ToTemporalTimeZone 2022-10-18 14:38:38 +02:00
plainDateTimeISO Temporal: Add tests for fast path in ToTemporalTimeZone 2022-10-18 14:38:38 +02:00
plainTimeISO Temporal: Add tests for fast path in ToTemporalTimeZone 2022-10-18 14:38:38 +02:00
timeZone Test Temporal.Now. 2022-01-24 13:36:43 -05:00
toStringTag Add Temporal tests 2021-10-01 14:30:12 -04:00
zonedDateTime Temporal: Add tests for fast path in ToTemporalTimeZone 2022-10-18 14:38:38 +02:00
zonedDateTimeISO Temporal: Add tests for fast path in ToTemporalTimeZone 2022-10-18 14:38:38 +02:00
builtin.js Test Temporal.Now. 2022-01-24 13:36:43 -05:00
prop-desc.js Test Temporal.Now. 2022-01-24 13:36:43 -05:00