15.2.3.6-4-333-11.js (659B)
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-11 6 description: > 7 ES5 Attributes - indexed 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(x) { 13 return arguments; 14 }(1001)); 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 24 assert(verifyValue, 'verifyValue !== true'); 25 26 reportCompare(0, 0);