| // Copyright (c) 2012 Ecma International. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| Object.defineProperty - 'value' property in 'Attributes' is own |
| accessor property that overrides an inherited data property |
| value: "inheritedDataProperty" |
| var ConstructFun = function () { }; |
| ConstructFun.prototype = proto; |
| var child = new ConstructFun(); |
| Object.defineProperty(child, "value", { |
| return "ownAccessorProperty"; |
| Object.defineProperty(obj, "property", child); |
| assert.sameValue(obj.property, "ownAccessorProperty", 'obj.property'); |