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.plainmonthday.prototype.equals
7 description: More than one time zone annotation is not syntactical
11 const invalidStrings = [
12 "1970-01-01T00:00[UTC][UTC]",
13 "1970-01-01T00:00[!UTC][UTC]",
14 "1970-01-01T00:00[UTC][!UTC]",
15 "1970-01-01T00:00[UTC][u-ca=iso8601][UTC]",
16 "1970-01-01T00:00[UTC][foo=bar][UTC]",
18 const instance = new Temporal.PlainMonthDay(5, 2);
19 invalidStrings.forEach((arg) => {
22 () => instance.equals(arg),
23 `reject more than one time zone annotation: ${arg}`