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