| 1 |
// Copyright (c) 2012 Ecma International. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
es5id: 15.2.3.7-3-3 |
| 6 |
description: > |
| 7 |
Object.defineProperties - enumerable inherited data property of |
| 8 |
'Properties' is not defined in 'O' |
| 9 |
---*/ |
| 10 |
|
| 11 |
var obj = {}; |
| 12 |
|
| 13 |
var proto = {}; |
| 14 |
|
| 15 |
Object.defineProperty(proto, "prop", { |
| 16 |
value: {}, |
| 17 |
enumerable: true |
| 18 |
}); |
| 19 |
|
| 20 |
var Con = function() {}; |
| 21 |
Con.prototype = proto; |
| 22 |
var child = new Con(); |
| 23 |
|
| 24 |
Object.defineProperties(obj, child); |
| 25 |
|
| 26 |
assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")'); |