summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1057580.js
blob: 7fe21b2ffcb2259a804dec2260e33ba591ab750d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// |jit-test| error: TypeError

function testApplyCallHelper(f) {
    for (var i = 0; i < 10; ++i)
        f.call(this);
}
function testApplyCall() {
    var r = testApplyCallHelper(
        function (a0,a1,a2,a3,a4,a5,a6,a7) {
	    x = [a0,a1,a2,a3,a4,a5,a6,a7];
        }
    );
    r += testApplyCallHelper(x);
}
testApplyCall();