1 // Copyright (c) 2012 Ecma International. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
7 Object.create - 'get' property of one property in 'Properties' is
8 own data property that overrides an inherited data property
14 return "inheritedDataProperty";
18 var ConstructFun = function() {};
19 ConstructFun.prototype = proto;
21 var descObj = new ConstructFun();
23 Object.defineProperty(descObj, "get", {
25 return "ownDataProperty";
29 var newObj = Object.create({}, {
33 assert.sameValue(newObj.prop, "ownDataProperty", 'newObj.prop');