15.2.3.6-4-274.js (715B)
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-274 6 description: > 7 Object.defineProperty - 'O' is an Array, 'name' is an array index 8 named property, test the length property of 'O' is not changed if 9 ToUint32('name') is less than value of the length property in 'O' 10 (15.4.5.1 step 4.e) 11 ---*/ 12 13 var arrObj = []; 14 arrObj.length = 3; // default value of length: writable: true, configurable: false, enumerable: false 15 16 Object.defineProperty(arrObj, "1", { 17 value: 14 18 }); 19 20 assert.sameValue(arrObj.length, 3, 'arrObj.length'); 21 assert.sameValue(arrObj[1], 14, 'arrObj[1]'); 22 23 reportCompare(0, 0);