15.2.3.7-6-a-62.js (656B)
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-62 6 description: > 7 Object.defineProperties - desc.enumerable and P.enumerable are two 8 boolean values with different values (8.12.9 step 6) 9 includes: [propertyHelper.js] 10 ---*/ 11 12 13 var obj = {}; 14 15 Object.defineProperty(obj, "foo", { 16 value: 10, 17 enumerable: false, 18 configurable: true 19 }); 20 21 Object.defineProperties(obj, { 22 foo: { 23 enumerable: true 24 } 25 }); 26 27 verifyProperty(obj, "foo", { 28 value: 10, 29 writable: false, 30 enumerable: true, 31 configurable: true, 32 }); 33 34 reportCompare(0, 0);