1 // |reftest| skip-if(!this.hasOwnProperty('Temporal')) -- Temporal is not enabled unconditionally
2 // Copyright (C) 2022 Igalia, S.L. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
6 esid: sec-temporal.zoneddatetime.prototype.equals
7 description: Negative zero, as an extended year, is rejected
8 features: [Temporal, arrow-function]
11 const invalidStrings = [
12 "-000000-10-31T17:45Z",
13 "-000000-10-31T17:45+00:00[UTC]",
15 const instance = new Temporal.ZonedDateTime(0n, "UTC");
16 invalidStrings.forEach((timeZone) => {
19 () => instance.equals({ year: 2020, month: 5, day: 2, timeZone }),
20 "reject minus zero as extended year"