blob: 53cd70919e385e7ed3cf9f57fb088b9cf47d1ae0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// |reftest| skip -- Temporal is not supported
// Copyright (C) 2022 Igalia, S.L. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-temporal.zoneddatetime
description: >
A Temporal.Calendar instance passed to new ZonedDateTime() does not have
its 'calendar' property observably checked
features: [Temporal]
---*/
const arg = new Temporal.Calendar("iso8601");
Object.defineProperty(arg, "calendar", {
get() {
throw new Test262Error("calendar.calendar should not be accessed");
},
});
new Temporal.ZonedDateTime(0n, "UTC", arg);
new Temporal.ZonedDateTime(0n, "UTC", { calendar: arg });
reportCompare(0, 0);
|