mirror of
https://github.com/tc39/test262.git
synced 2025-07-05 05:04:42 +02:00
A follow up to the previous commit, this rewrites some tests that relied on the lack of brand checks for certain Temporal.TimeZone methods. https://github.com/tc39/proposal-temporal/pull/1693 added brand checks to these methods. We can no longer use a plain object time zone or even a Proxy with a real branded Temporal.TimeZone object as its handler to do these tests, so we instead create an instance of Temporal.TimeZone and define own accessor properties on it in order to test the observable property accesses that we need to see according to the spec text. This requires an improvement to TemporalHelpers.observeProperty() in order to be able to log property accesses to Symbol-valued properties.