Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Array/of/length.js

raw
1 // Copyright (C) 2015 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3 /*---
4 esid: sec-array.of
5 es6id: 22.1.2.3
6 description: >
7 Array.of.length value and property descriptor
8 info: |
9 Array.of ( ...items )
10
11 The length property of the of function is 0.
12 includes: [propertyHelper.js]
13 ---*/
14
15 assert.sameValue(
16 Array.of.length, 0,
17 'The value of `Array.of.length` is `0`'
18 );
19
20 verifyNotEnumerable(Array.of, 'length');
21 verifyNotWritable(Array.of, 'length');
22 verifyConfigurable(Array.of, 'length');