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
8 Calendar.monthDayFromFields method is called with undefined as the options
9 value when call originates internally
10 includes: [temporalHelpers.js]
14 const calendar = TemporalHelpers.calendarFromFieldsUndefinedOptions();
15 const instance = new Temporal.PlainMonthDay(5, 2, calendar);
16 instance.equals({ monthCode: "M05", day: 3, calendar });
17 assert.sameValue(calendar.monthDayFromFieldsCallCount, 1);