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, desc is accessor property (8.12.9
10 includes: [propertyHelper.js]
16 Object.defineProperty(obj, "foo", {
26 Object.defineProperties(obj, {
31 throw new Test262Error("Expected an exception.");
33 verifyEqualTo(obj, "foo", 10);
35 verifyNotWritable(obj, "foo");
37 verifyNotEnumerable(obj, "foo");
39 verifyNotConfigurable(obj, "foo");
41 if (!(e instanceof TypeError)) {
42 throw new Test262Error("Expected TypeError, got " + e);