15.2.3.7-6-a-246.js (876B)
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.7-6-a-246 6 description: > 7 Object.defineProperties - TypeError is not thrown if ''O' is an 8 Array, 'P' is an array index named property that already exists on 9 'O' is accessor property with [[Configurable]] false, 'desc' is 10 accessor descriptor, test TypeError is not thrown if the [[Get]] 11 field of 'desc' is present, and the [[Get]] field of 'desc' and 12 the [[Get]] attribute value of 'P' are undefined (15.4.5.1 step 13 4.c) 14 includes: [propertyHelper.js] 15 ---*/ 16 17 var arr = []; 18 19 Object.defineProperty(arr, "1", { 20 get: undefined 21 }); 22 23 Object.defineProperties(arr, { 24 "1": { 25 get: undefined 26 } 27 }); 28 29 verifyProperty(arr, "1", { 30 enumerable: false, 31 configurable: false, 32 }); 33 34 reportCompare(0, 0);