| 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-45 |
| 6 |
description: > |
| 7 |
Object.getOwnPropertyNames - inherited data property of Array |
| 8 |
object 'O' is not pushed into the returned array. |
| 9 |
---*/ |
| 10 |
|
| 11 |
var arr = [0, 1, 2]; |
| 12 |
|
| 13 |
Array.prototype.protoProperty = "protoArray"; |
| 14 |
|
| 15 |
var result = Object.getOwnPropertyNames(arr); |
| 16 |
|
| 17 |
for (var p in result) { |
| 18 |
assert.notSameValue(result[p], "protoProperty", 'result[p]'); |
| 19 |
} |