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.value is not equal to P.value (8.12.9 step
11 includes: [propertyHelper.js]
17 Object.defineProperty(obj, "foo", {
24 Object.defineProperties(obj, {
29 throw new Test262Error("Expected an exception.");
31 verifyEqualTo(obj, "foo", 10);
33 verifyNotWritable(obj, "foo");
35 verifyNotEnumerable(obj, "foo");
37 verifyNotConfigurable(obj, "foo");
39 if (!(e instanceof TypeError)) {
40 throw new Test262Error("Expected TypeError, got " + e);