15.2.3.14-5-11.js (528B)
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.14-5-11 6 description: > 7 Object.keys - own enumerable indexed data property of dense array 8 'O' is defined in returned array 9 ---*/ 10 11 var obj = [1, 2, 3, 4, 5]; 12 13 var arr = Object.keys(obj); 14 15 var initValue = 0; 16 for (var p in arr) { 17 if (arr.hasOwnProperty(p)) { 18 assert.sameValue(arr[p], initValue.toString(), 'arr[p]'); 19 initValue++; 20 } 21 } 22 23 reportCompare(0, 0);