| // Copyright (c) 2012 Ecma International. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| Object.defineProperties - 'P' is own accessor property (8.12.9 |
| includes: [propertyHelper.js] |
| Object.defineProperty(obj, "prop", { |
| Object.defineProperties(obj, { |
| $ERROR("Expected an exception."); |
| verifyEqualTo(obj, "prop", getFunc()); |
| verifyNotEnumerable(obj, "prop"); |
| verifyNotConfigurable(obj, "prop"); |
| if (!(e instanceof TypeError)) { |
| $ERROR("Expected TypeError, got " + e); |