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