| // 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 data property that |
| overrides an inherited accessor property |
| Object.defineProperty(proto, "property", { |
| return "inheritedDataProperty"; |
| var Con = function () { }; |
| Object.defineProperty(child, "property", { |
| value: "ownDataProperty", |
| var desc = Object.getOwnPropertyDescriptor(child, "property"); |
| assert.sameValue(desc.value, "ownDataProperty", 'desc.value'); |