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