Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Object/defineProperties/15.2.3.7-6-a-179.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.2.3.7-6-a-179
6 description: >
7 Object.defineProperties - 'O' is an Array, 'P' is an array index
8 named property, 'P' is boundary value 2^32 - 2 (15.4.5.1 step 4.a)
9 ---*/
10
11 var arr = [];
12
13 Object.defineProperties(arr, {
14 "4294967294": {
15 value: 100
16 }
17 });
18
19 assert(arr.hasOwnProperty("4294967294"), 'arr.hasOwnProperty("4294967294") !== true');
20 assert.sameValue(arr.length, 4294967295, 'arr.length');
21 assert.sameValue(arr[4294967294], 100, 'arr[4294967294]');