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