Backed out 3 changesets (bug 1892041) for causing failures on async-module-does-not...
[gecko.git] / js / src / tests / test262 / built-ins / TypedArrayConstructors / Uint8Array / name.js
blobc3b17bdc555ced0fd705062c1ac1baed5d892a8f
1 // Copyright (C) 2015 AndrĂ© Bargull. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 esid: sec-properties-of-the-typedarray-constructors
6 description: >
7   Uint8Array.name is "Uint8Array".
8 info: |
9   Each TypedArray constructor has a name property whose value is the
10   String value of the constructor name specified for it in Table 49.
12   17 ECMAScript Standard Built-in Objects:
13     Every built-in Function object, including constructors, that is not
14     identified as an anonymous function has a name property whose value
15     is a String.
17     Unless otherwise specified, the name property of a built-in Function
18     object, if it exists, has the attributes { [[Writable]]: false,
19     [[Enumerable]]: false, [[Configurable]]: true }.
20 includes: [propertyHelper.js]
21 features: [TypedArray]
22 ---*/
24 assert.sameValue(Uint8Array.name, "Uint8Array");
26 verifyNotEnumerable(Uint8Array, "name");
27 verifyNotWritable(Uint8Array, "name");
28 verifyConfigurable(Uint8Array, "name");
30 reportCompare(0, 0);