Debian Codegraph @

js/src/tests/test262/built-ins/Array/length.js

raw
1 // Copyright (C) 2017 Leo Balter. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 esid: sec-array-constructor
6 description: >
7 Array has a "length" property whose value is 1.
8 info: |
9 22.1.1 The Array Constructor
10
11 The length property of the Array constructor function is 1.
12 ...
13
14 ES7 section 17: Unless otherwise specified, the length property of a built-in
15 Function object has the attributes { [[Writable]]: false, [[Enumerable]]:
16 false, [[Configurable]]: true }.
17 includes: [propertyHelper.js]
18 ---*/
19
20 verifyProperty(Array, "length", {
21 value: 1,
22 writable: false,
23 enumerable: false,
24 configurable: true
25 });
26
27 reportCompare(0, 0);