| // Copyright (c) 2012 Ecma International. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| Object.seal - 'P' is own accessor property that overrides an |
| inherited accessor property |
| includes: [propertyHelper.js] |
| Object.defineProperty(proto, "foo", { |
| var ConstructFun = function () { }; |
| ConstructFun.prototype = proto; |
| var obj = new ConstructFun(); |
| Object.defineProperty(obj, "foo", { |
| assert(Object.isExtensible(obj)); |
| verifyNotConfigurable(obj, "foo"); |
| assert.sameValue(obj.foo, 10); |