Debian Codegraph @

js/src/tests/test262/built-ins/ArrayBuffer/prop-desc.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 Property descriptor of ArrayBuffer
8 info: |
9 17 ECMAScript Standard Built-in Objects:
10
11 Every other data property described in clauses 18 through 26 and in Annex B.2
12 has the attributes { [[Writable]]: true, [[Enumerable]]: false,
13 [[Configurable]]: true } unless otherwise specified.
14 includes: [propertyHelper.js]
15 ---*/
16
17 assert.sameValue(typeof ArrayBuffer, "function", "`typeof ArrayBuffer` is `'function'`");
18
19 verifyProperty(this, "ArrayBuffer", {
20 writable: true,
21 enumerable: false,
22 configurable: true,
23 });
24
25 reportCompare(0, 0);