15.2.3.7-6-a-29.js (570B)
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-29 6 description: > 7 Object.defineProperties - 'P' doesn't exist in 'O', test 8 [[Enumerable]] of 'P' is set as false value if absent in data 9 descriptor 'desc' (8.12.9 step 4.a.i) 10 ---*/ 11 12 var obj = {}; 13 14 Object.defineProperties(obj, { 15 prop: { 16 value: 1001 17 } 18 }); 19 20 for (var prop in obj) { 21 if (obj.hasOwnProperty(prop)) { 22 assert.notSameValue(prop, "prop", 'prop'); 23 } 24 } 25 26 reportCompare(0, 0);