| // Copyright (c) 2012 Ecma International. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| Object.defineProperties - 'O' is an Array, 'P' is the length |
| property of 'O', the [[Value]] field of 'desc' is less than value |
| of the length property, test the [[Writable]] attribute of the |
| length property in 'O' is set as true before deleting properties |
| with large index named (15.4.5.1 step 3.i.iii) |
| includes: [propertyHelper.js] |
| Object.defineProperty(arr, "1", { |
| Object.defineProperties(arr, { |
| $ERROR("expected to throw TypeError") |
| assert(e instanceof TypeError); |
| assert.sameValue(arr.length, 2); |
| verifyNotWritable(arr, "length"); |