15.2.3.14-5-a-1.js (537B)
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-a-1 6 description: > 7 Object.keys - 'value' attribute of element in returned array is 8 correct. 9 ---*/ 10 11 var obj = { 12 prop1: 1 13 }; 14 15 var array = Object.keys(obj); 16 17 var desc = Object.getOwnPropertyDescriptor(array, "0"); 18 19 assert(desc.hasOwnProperty("value"), 'desc.hasOwnProperty("value") !== true'); 20 assert.sameValue(desc.value, "prop1", 'desc.value'); 21 22 reportCompare(0, 0);