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