| 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.4-4-36 |
| 6 |
description: > |
| 7 |
Object.getOwnPropertyNames - inherited data properties are not |
| 8 |
pushed into the returned array |
| 9 |
---*/ |
| 10 |
|
| 11 |
var proto = { |
| 12 |
"parent": "parent" |
| 13 |
}; |
| 14 |
|
| 15 |
var Con = function() {}; |
| 16 |
Con.prototype = proto; |
| 17 |
|
| 18 |
var child = new Con(); |
| 19 |
|
| 20 |
var result = Object.getOwnPropertyNames(child); |
| 21 |
|
| 22 |
for (var p in result) { |
| 23 |
assert.notSameValue(result[p], "parent", 'result[p]'); |
| 24 |
} |