15.2.3.6-4-354-12.js (776B)
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.6-4-354-12 6 description: > 7 Object.defineProperty will update [[Value]] attribute of indexed 8 property successfully when [[Configurable]] attribute is true and 9 [[Writable]] attribute is false, 'O' is an Arguments object 10 (8.12.9 - step Note) 11 includes: [propertyHelper.js] 12 ---*/ 13 14 15 var obj = (function() { 16 return arguments; 17 }()); 18 19 Object.defineProperty(obj, "0", { 20 value: 1001, 21 writable: false, 22 configurable: true 23 }); 24 25 Object.defineProperty(obj, "0", { 26 value: 1002 27 }); 28 29 verifyProperty(obj, "0", { 30 value: 1002, 31 writable: false, 32 enumerable: false, 33 configurable: true, 34 }); 35 36 reportCompare(0, 0);