| // 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, P.enumerable and desc.enumerable has different values |
| includes: [propertyHelper.js] |
| Object.defineProperty(obj, "foo", { |
| Object.defineProperties(obj, { |
| $ERROR("Expected an exception."); |
| verifyEqualTo(obj, "foo", 10); |
| verifyNotWritable(obj, "foo"); |
| verifyNotEnumerable(obj, "foo"); |
| verifyNotConfigurable(obj, "foo"); |
| if (!(e instanceof TypeError)) { |
| $ERROR("Expected TypeError, got " + e); |