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
8 Tests that Temporal.PlainMonthDay.prototype.equals
9 meets the requirements for built-in objects defined by the
10 introduction of chapter 17 of the ECMAScript Language Specification.
12 Built-in functions that are not constructors do not have a "prototype" property unless
13 otherwise specified in the description of a particular function.
15 Unless specified otherwise, a built-in object that is callable as a function is a built-in
16 function object with the characteristics described in 10.3. Unless specified otherwise, the
17 [[Extensible]] internal slot of a built-in object initially has the value true.
19 Unless otherwise specified every built-in function and every built-in constructor has the
20 Function prototype object [...] as the value of its [[Prototype]] internal slot.
24 assert.sameValue(Object.isExtensible(Temporal.PlainMonthDay.prototype.equals),
25 true, "Built-in objects must be extensible.");
27 assert.sameValue(Object.prototype.toString.call(Temporal.PlainMonthDay.prototype.equals),
28 "[object Function]", "Object.prototype.toString");
30 assert.sameValue(Object.getPrototypeOf(Temporal.PlainMonthDay.prototype.equals),
31 Function.prototype, "prototype");
33 assert.sameValue(Temporal.PlainMonthDay.prototype.equals.hasOwnProperty("prototype"),
34 false, "prototype property");