summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1365518.js
blob: 30dc060c96e230b34e9445637c5fbaef36de1cc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function init() {
    foo = () => 1;
    bar = () => 2;
    foo.__proto__ = function() {};
}
function test() {
    var arr = [foo, bar];
    for (var i = 0; i < 1300; i++) {
        assertEq(arr[i % 2](), i % 2 + 1);
    }
}
init();
test();