15.2.3.5-4-26.js (518B)
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.5-4-26 6 description: > 7 Object.create - TypeError is thrown when own enumerable accessor 8 property of 'Properties' without a get function (15.2.3.7 step 5.a) 9 ---*/ 10 11 var props = {}; 12 Object.defineProperty(props, "prop", { 13 set: function() {}, 14 enumerable: true 15 }); 16 assert.throws(TypeError, function() { 17 Object.create({}, props); 18 }); 19 20 reportCompare(0, 0);