summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testCallPick.js
blob: 7f1d9ade00dd232e5ba9939df849e8e989bbb675 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
function testCallPick() {
    function g(x,a) {
        x.f();
    }

    var x = [];
    x.f = function() { }

    var y = [];
    y.f = function() { }

    var z = [x,x,x,x,x,y,y,y,y,y];

    for (var i = 0; i < 10; ++i)
        g.call(this, z[i], "");
    return true;
}
assertEq(testCallPick(), true);