15.2.3.5-4-229.js (611B)
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-229 6 description: > 7 Object.create - 'writable' property of one property in 8 'Properties' is a string (value is 'false') which is treated as 9 the value true (8.10.5 step 6.b) 10 ---*/ 11 12 var newObj = Object.create({}, { 13 prop: { 14 writable: "false" 15 } 16 }); 17 var hasProperty = newObj.hasOwnProperty("prop"); 18 19 newObj.prop = 121; 20 21 assert(hasProperty, 'hasProperty !== true'); 22 assert.sameValue(newObj.prop, 121, 'newObj.prop'); 23 24 reportCompare(0, 0);