| // Copyright (c) 2012 Ecma International. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| Object.defineProperty - 'O' is an Array, 'name' is an array index |
| named property, test TypeError is thrown if the [[Writable]] |
| attribute of the length property in 'O' is false and value of |
| 'name' is greater than value of the length property (15.4.5.1 step |
| Object.defineProperty(arrObj, "length", { |
| assert.throws(TypeError, function() { |
| Object.defineProperty(arrObj, 4, { |