1 // Copyright (c) 2012 Ecma International. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
7 Object.defineProperty - 'O' is an Array, 'name' is an array index
8 named property, 'name' is data property and 'desc' is data
9 descriptor, and the [[Configurable]] attribute value of 'name' is
10 false, test TypeError is thrown if the [[Writable]] attribute
11 value of 'name' is false, and the [[Value]] field of 'desc' is +0,
12 and the [[Value]] attribute value of 'name' is -0 (15.4.5.1 step
14 includes: [propertyHelper.js]
19 Object.defineProperty(arrObj, "1", {
24 Object.defineProperty(arrObj, "1", {
27 throw new Test262Error("Expected an exception.");
29 if (!(e instanceof TypeError)) {
30 throw new Test262Error("Expected TypeError, got " + e);
34 verifyProperty(arrObj, "1", {