15.2.3.6-4-333-10.js (716B)
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-333-10 6 description: > 7 ES5 Attributes - indexed data property 'P' with attributes 8 [[Writable]]: true, [[Enumerable]]: true, [[Configurable]]: false 9 is writable using simple assignment, 'O' is an Arguments object 10 ---*/ 11 12 var obj = (function() { 13 return arguments; 14 }()); 15 16 Object.defineProperty(obj, "0", { 17 value: 2010, 18 writable: true, 19 enumerable: true, 20 configurable: false 21 }); 22 var verifyValue = (obj[0] === 2010); 23 obj[0] = 1001; 24 25 assert(verifyValue, 'verifyValue !== true'); 26 assert.sameValue(obj[0], 1001, 'obj[0]'); 27 28 reportCompare(0, 0);