summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testHeavy.js
blob: 1d539fb2d4b7713a3a3e67dd0c1c8916a9d47e39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function heavyFn1(i) { 
    if (i == 3) {
	var x = 3;
        return [0, i].map(function (i) { return i + x; });
    }
    return [];
}

function testHeavy() {
    for (var i = 0; i <= 3; i++)
        heavyFn1(i);
}

testHeavy();