Debian Codegraph @

js/src/tests/test262/built-ins/ArrayBuffer/name.js

raw
1 // Copyright (C) 2017 Rick Waldron. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 esid: sec-arraybuffer-constructor
6 description: >
7 ArrayBuffer.name is "ArrayBuffer".
8 info: |
9 17 ECMAScript Standard Built-in Objects:
10
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.
14
15 Unless otherwise specified, the name property of a built-in Function object,
16 if it exists, has the attributes { [[Writable]]: false, [[Enumerable]]:
17 false, [[Configurable]]: true }.
18
19 includes: [propertyHelper.js]
20 ---*/
21
22 assert.sameValue(ArrayBuffer.name, "ArrayBuffer");
23
24 verifyProperty(ArrayBuffer, "name", {
25 writable: false,
26 enumerable: false,
27 configurable: true,
28 });
29
30 reportCompare(0, 0);