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 own data property, test TypeError is
9 thrown on updating the configurable attribute from false to true
11 includes: [propertyHelper.js]
16 Object.defineProperty(arrObj, 0, {
17 value: "ownDataProperty",
22 Object.defineProperty(arrObj, 0, {
25 throw new Test262Error("Expected an exception.");
27 verifyEqualTo(arrObj, "0", "ownDataProperty");
29 verifyNotWritable(arrObj, "0");
31 verifyNotEnumerable(arrObj, "0");
33 verifyNotConfigurable(arrObj, "0");
35 if (!(e instanceof TypeError)) {
36 throw new Test262Error("Expected TypeError, got " + e);