summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/deep2.js
blob: 2cf30b814bd32f216bb907f7ec8813c7c75eba8f (plain)
1
2
3
4
5
6
7
8
9
10
11
function deep1(x) {
    if (x > 90)
       return 1;
    return 2;
}
function deep2() {
    for (var i = 0; i < 100; ++i)
        deep1(i);
    return "ok";
}
assertEq(deep2(), "ok");