15.2.3.7-6-a-181.js (627B)
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-181 6 description: > 7 Object.defineProperties - 'O' is an Array, 'P' is an array index 8 named property, 'P' is boundary value 2^32 (15.4.5.1 step 4.a) 9 ---*/ 10 11 var arr = []; 12 13 Object.defineProperties(arr, { 14 "4294967296": { 15 value: 100 16 } 17 }); 18 19 assert(arr.hasOwnProperty("4294967296"), 'arr.hasOwnProperty("4294967296") !== true'); 20 assert.sameValue(arr.length, 0, 'arr.length'); 21 assert.sameValue(arr[4294967296], 100, 'arr[4294967296]'); 22 23 reportCompare(0, 0);