Debian Codegraph @

js/src/tests/test262/harness/propertyhelper-verifywritable-array-length.js

raw
1 // Copyright (C) 2020 Alexey Shvayka. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 description: >
6 "length" property of Arrays is tested with valid value.
7 includes: [propertyHelper.js]
8 ---*/
9
10 var array = [1, 2, 3];
11
12 verifyWritable(array, "length");
13
14 assert.sameValue(array.length, 3, '`verifyWritable` should be non-destructive.');
15
16 reportCompare(0, 0);