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.defineProperties throws TypeError when 'P' is data property
8 and P.configurable is false, P.writable is false, desc is data
9 property and desc.writable is true (8.12.9 step 10.a.i)
10 includes: [propertyHelper.js]
16 Object.defineProperty(obj, "foo", {
23 Object.defineProperties(obj, {
28 throw new Test262Error("Expected an exception.");
30 verifyEqualTo(obj, "foo", 10);
32 verifyNotWritable(obj, "foo");
34 verifyNotEnumerable(obj, "foo");
36 verifyNotConfigurable(obj, "foo");
38 if (!(e instanceof TypeError)) {
39 throw new Test262Error("Expected TypeError, got " + e);