15.2.3.7-6-a-243.js (840B)
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-243 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, the [[Set]] field of 'desc' is present, and 11 the [[Set]] field of 'desc' and the [[Set]] attribute value of 'P' 12 are undefined (15.4.5.1 step 4.c) 13 includes: [propertyHelper.js] 14 ---*/ 15 16 var arr = []; 17 18 Object.defineProperty(arr, "1", { 19 set: undefined 20 }); 21 22 Object.defineProperties(arr, { 23 "1": { 24 set: undefined 25 } 26 }); 27 28 verifyProperty(arr, "1", { 29 enumerable: false, 30 configurable: false, 31 }); 32 33 reportCompare(0, 0);