| // 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.[[Get]] and P.[[Get]] are two objects which |
| refer to different objects (8.12.9 step 11.a.ii) |
| includes: [propertyHelper.js] |
| function set_func(value) { |
| obj.setVerifyHelpProp = value; |
| Object.defineProperty(obj, "foo", { |
| Object.defineProperties(obj, { |
| $ERROR("Expected an exception"); |
| verifyEqualTo(obj, "foo", get_func1()); |
| verifyWritable(obj, "foo", "setVerifyHelpProp"); |
| verifyNotEnumerable(obj, "foo"); |
| verifyNotConfigurable(obj, "foo"); |
| if (!(e instanceof TypeError)) { |
| $ERROR("Expected TypeError, got " + e); |