| // Copyright (c) 2012 Ecma International. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| Object.getOwnPropertyDescriptor - 'P' is own accessor property |
| that overrides an inherited accessor property |
| Object.defineProperty(proto, "property", { |
| return "inheritedAccessorProperty"; |
| var Con = function () { }; |
| return "ownAccessorProperty"; |
| Object.defineProperty(child, "property", { |
| var desc = Object.getOwnPropertyDescriptor(child, "property"); |
| assert.sameValue(desc.get, fun, 'desc.get'); |