Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / BigInt / name.js
blob6568d1bdf7b4f50dd209536647b5add33fc4548c
1 // Copyright (C) 2017 Robin Templeton. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 esid: sec-bigint-constructor-number-value
6 description: BigInt.name property descriptor
7 info: |
8   BigInt ( value )
10   17 ECMAScript Standard Built-in Objects
12   Every built-in function object, including constructors, that is not
13   identified as an anonymous function has a name property whose value
14   is a String. Unless otherwise specified, this value is the name that
15   is given to the function in this specification. For functions that
16   are specified as properties of objects, the name value is the
17   property name string used to access the function. [...]
19   Unless otherwise specified, the name property of a built-in function
20   object, if it exists, has the attributes { [[Writable]]: false,
21   [[Enumerable]]: false, [[Configurable]]: true }.
22 includes: [propertyHelper.js]
23 features: [BigInt]
24 ---*/
26 verifyProperty(BigInt, "name", {
27   value: "BigInt",
28   writable: false,
29   enumerable: false,
30   configurable: true
31 });
33 reportCompare(0, 0);