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