15.2.3.7-6-a-82.js (737B)
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-6-a-82 6 description: > 7 Object.defineProperties will not throw TypeError when 8 P.configurable is false, P.writalbe is false, properties.value and 9 P.value are two booleans with the same value (8.12.9 step 10 10.a.ii.1) 11 includes: [propertyHelper.js] 12 ---*/ 13 14 15 var obj = {}; 16 17 Object.defineProperty(obj, "foo", { 18 value: false, 19 writable: false, 20 configurable: false 21 }); 22 23 Object.defineProperties(obj, { 24 foo: { 25 value: false 26 } 27 }); 28 29 verifyProperty(obj, "foo", { 30 value: false, 31 writable: false, 32 enumerable: false, 33 configurable: false, 34 }); 35 36 reportCompare(0, 0);