1 // |reftest| skip-if(!this.hasOwnProperty('Temporal')) -- Temporal is not enabled unconditionally
2 // Copyright (C) 2021 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: RangeError thrown if a string with UTC designator is used as a PlainMonthDay
8 features: [Temporal, arrow-function]
11 const invalidStrings = [
12 "2019-10-01T09:00:00Z",
13 "2019-10-01T09:00:00Z[UTC]",
15 const instance = new Temporal.PlainMonthDay(5, 2);
16 invalidStrings.forEach((arg) => {
19 () => instance.equals(arg),
20 "String with UTC designator should not be valid as a PlainMonthDay"