15.2.3.6-4-53.js (748B)
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-53 6 description: > 7 Object.defineProperty - 'name' property doesn't exist in 'O', test 8 [[Get]] of 'name' property is set as undefined if it is absent in 9 accessor descriptor 'desc' (8.12.9 step 4.b) 10 includes: [propertyHelper.js] 11 ---*/ 12 13 var obj = {}; 14 var setFunc = function(value) { 15 obj.setVerifyHelpProp = value; 16 }; 17 18 Object.defineProperty(obj, "property", { 19 set: setFunc, 20 enumerable: true, 21 configurable: true 22 }); 23 24 verifyWritable(obj, "property", "setVerifyHelpProp"); 25 26 verifyProperty(obj, "property", { 27 enumerable: true, 28 configurable: true, 29 }); 30 31 reportCompare(0, 0);