| // Copyright (c) 2012 Ecma International. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| Object.defineProperties throws TypeError when P.configurable is |
| false, both properties.[[Set]] and P.[[Set]] are two objects which |
| refer to different objects (8.12.9 step 11.a.i) |
| includes: [propertyHelper.js] |
| function set_func1(value) { |
| obj.setVerifyHelpProp = value; |
| Object.defineProperty(obj, "foo", { |
| Object.defineProperties(obj, { |
| $ERROR("Expected an exception."); |
| verifyWritable(obj, "foo", "setVerifyHelpProp"); |
| verifyNotEnumerable(obj, "foo"); |
| verifyNotConfigurable(obj, "foo"); |
| if (!(e instanceof TypeError)) { |
| $ERROR("Expected TypeError, got " + e); |