blob: 60e70d312a4dfbf9561c16ec302e2a23a1b54475 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.reduceright
description: >
Array.prototype.reduceRight doesn't throw error when array has no
own properties but prototype contains a single property
---*/
var arr = [, , , ];
try {
Array.prototype[1] = "prototype";
arr.reduceRight(function() {});
} finally {
delete Array.prototype[1];
}
reportCompare(0, 0);
|