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-93-2
7 Object.defineProperties will update [[Value]] attribute of indexed
8 data property 'P' successfully when [[Configurable]] attribute is
9 true and [[Writable]] attribute is false but not when both are
10 false (8.12.9 - step Note & 10.a.ii.1)
11 includes: [propertyHelper.js]
17 Object.defineProperty(obj, "0", {
23 Object.defineProperty(obj, "1", {
30 Object.defineProperties(obj, {
39 throw new Test262Error("Expected an exception.");
41 verifyEqualTo(obj, "0", 1002);
43 verifyNotWritable(obj, "0");
45 verifyNotEnumerable(obj, "0");
47 verifyConfigurable(obj, "0");
48 verifyEqualTo(obj, "1", 1003);
50 verifyNotWritable(obj, "1");
52 verifyNotEnumerable(obj, "1");
54 verifyNotConfigurable(obj, "1");
56 if (!(e instanceof TypeError)) {
57 throw new Test262Error("Expected TypeError, got " + e);