summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testFunApplyOverflow.js
blob: 45be944e99e45adc79c687423d4c5766fe818a6d (plain)
1
2
3
4
5
6
7
8
9
10
function g(x,y) {
    return x + y;
}

function f(x) {
    return g.apply(null, arguments);
}

for (var i = 0; i < 100; ++i)
    assertEq(f(i, 1), i+1);