Debian Codegraph @

js/src/tests/test262/built-ins/Array/15.4.5.1-5-2.js

raw
1 // Copyright (c) 2012 Ecma International. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 es5id: 15.4.5.1-5-2
6 description: >
7 Defining a property named 4294967295 (2**32-1) doesn't change
8 length of the array
9 ---*/
10
11 var a = [0, 1, 2];
12 a[4294967295] = "not an array element";
13
14 assert.sameValue(a.length, 3, 'The value of a.length is expected to be 3');
15
16 reportCompare(0, 0);