15.2.3.7-5-b-141.js (591B)
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-5-b-141 6 description: > 7 Object.defineProperties - 'writable' property of 'descObj' is 8 inherited data property (8.10.5 step 6.a) 9 includes: [propertyHelper.js] 10 ---*/ 11 12 var obj = {}; 13 14 var proto = { 15 writable: false 16 }; 17 18 var Con = function() {}; 19 Con.prototype = proto; 20 21 var descObj = new Con(); 22 23 Object.defineProperties(obj, { 24 property: descObj 25 }); 26 27 verifyProperty(obj, "property", { 28 writable: false, 29 }); 30 31 reportCompare(0, 0);