| // Copyright (c) 2012 Ecma International. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| Object.keys - own enumerable indexed data property of sparse array |
| 'O' is defined in returned array |
| Object.defineProperty(obj, 5, { |
| Object.defineProperty(obj, 10000, { |
| value: "ElementWithLargeIndex", |
| var arr = Object.keys(obj); |
| for (index = 0; index < 3; index++) { |
| assert.sameValue(arr[index], initValue.toString(), 'Unexpected property at index: ' + index); |
| assert.sameValue(arr.length, 4, 'arr.length'); |
| assert.sameValue(arr[3], "10000", 'arr[3]'); |