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.configurable is
8 false, P.[[Set]] is undefined, properties.[[Set]] refers to an
9 object (8.12.9 step 11.a.i)
10 includes: [propertyHelper.js]
20 Object.defineProperty(obj, "foo", {
27 function set_Func() {}
30 Object.defineProperties(obj, {
35 throw new Test262Error("Expected an exception.");
37 if (!(e instanceof TypeError)) {
38 throw new Test262Error("Expected TypeError, got " + e);
42 verifyProperty(obj, "foo", {
47 var desc = Object.getOwnPropertyDescriptor(obj, "foo");
49 if (typeof(desc.set) !== "undefined") {
50 throw new Test262Error('Expected typeof (desc.set) === "undefined", actually ' + typeof(desc.set));