Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / Temporal / PlainMonthDay / prototype / equals / calendar-monthdayfromfields-called-with-options-undefined.js
blob755b1d76a5a6d2d3d5b139ee27c56f53837dd99f
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.
5 /*---
6 esid: sec-temporal.plainmonthday.prototype.equals
7 description: >
8     Calendar.monthDayFromFields method is called with undefined as the options
9     value when call originates internally
10 includes: [temporalHelpers.js]
11 features: [Temporal]
12 ---*/
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);
19 reportCompare(0, 0);