1 // Copyright (c) 2012 Ecma International. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
5 es5id: 15.2.3.7-6-a-237
7 Object.defineProperties - TypeError is thrown if 'O' is an Array,
8 'P' is an array index named property that already exists on 'O' is
9 data property with [[Configurable]], [[Writable]] false, 'desc'
10 is data descriptor, [[Value]] field of 'desc' and the [[Value]]
11 attribute value of 'P' are two numbers with different vaule
13 includes: [propertyHelper.js]
19 Object.defineProperty(arr, "1", {
24 Object.defineProperties(arr, {
29 throw new Test262Error("Expected an exception.");
31 verifyEqualTo(arr, "1", 12);
33 verifyNotWritable(arr, "1");
35 verifyNotEnumerable(arr, "1");
37 verifyNotConfigurable(arr, "1");
39 if (!(e instanceof TypeError)) {
40 throw new Test262Error("Expected TypeError, got " + e);