summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/inline-transpile.js
blob: 07202565931fbae5d3ac95ca38f65a1b63c604c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function foo(i) {
    return i;
}

function bar(n) {
    return foo.apply({}, arguments);
}

function baz(a, n) {
    return bar(n);
}

var sum = 0;
for (var i = 0; i < 10000; i++) {
    sum += baz(0, 1);
}
assertEq(sum, 10000);