| 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-2 |
| 6 |
description: > |
| 7 |
Object.defineProperties - own data property of 'Properties' which |
| 8 |
is not enumerable is not defined in 'O' |
| 9 |
---*/ |
| 10 |
|
| 11 |
var obj = {}; |
| 12 |
var props = {}; |
| 13 |
|
| 14 |
Object.defineProperty(props, "prop", { |
| 15 |
value: {}, |
| 16 |
enumerable: false |
| 17 |
}); |
| 18 |
|
| 19 |
Object.defineProperties(obj, props); |
| 20 |
|
| 21 |
assert.sameValue(obj.hasOwnProperty("prop"), false, 'obj.hasOwnProperty("prop")'); |