Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / Temporal / PlainMonthDay / prototype / equals / builtin.js
blob933acb1ba0383e3f3ae0cbaed7767cc3cf7950b6
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.
5 /*---
6 esid: sec-temporal.plainmonthday.prototype.equals
7 description: >
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.
11 info: |
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.
21 features: [Temporal]
22 ---*/
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");
36 reportCompare(0, 0);