15.2.3.14-3-1.js (471B)
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-3-1 6 description: > 7 Object.keys returns the standard built-in Array containing own 8 enumerable properties 9 ---*/ 10 11 var o = { 12 x: 1, 13 y: 2 14 }; 15 16 var a = Object.keys(o); 17 18 assert.sameValue(a.length, 2, 'a.length'); 19 assert.sameValue(a[0], 'x', 'a[0]'); 20 assert.sameValue(a[1], 'y', 'a[1]'); 21 22 reportCompare(0, 0);