Backed out 3 changesets (bug 1892041) for causing failures on async-module-does-not...
[gecko.git] / js / src / tests / test262 / built-ins / Array / name.js
blob621154b510acb23b94d6a1545fa7437fac5d1e3c
1 // Copyright (C) 2017 Leo Balter. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 esid: sec-array-constructor
6 description: >
7   The "name" property of Array
8 info: |
9   17 ECMAScript Standard Built-in Objects
11   Every built-in Function object, including constructors, that is not
12   identified as an anonymous function has a name property whose value is a
13   String. Unless otherwise specified, this value is the name that is given to
14   the function in this specification.
16   [...]
18   Unless otherwise specified, the name property of a built-in Function
19   object, if it exists, has the attributes { [[Writable]]: false,
20   [[Enumerable]]: false, [[Configurable]]: true }.
21 includes: [propertyHelper.js]
22 ---*/
24 assert.sameValue(Array.name, 'Array', 'The value of Array.name is expected to be "Array"');
26 verifyNotEnumerable(Array, 'name');
27 verifyNotWritable(Array, 'name');
28 verifyConfigurable(Array, 'name');
30 reportCompare(0, 0);