summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testClosingRecursion.js
blob: 5b76d2ab137e5d56dc6acd2565ed044a0f3de4e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Test no assert (bug 464089)
function shortRecursiveLoop(b, c) {
    for (var i = 0; i < c; i++) {
        if (b)
            shortRecursiveLoop(c - 1);
    }
}
function testClosingRecursion() {
    shortRecursiveLoop(false, 1);
    shortRecursiveLoop(true, 3);
    return true;
}
assertEq(testClosingRecursion(), true);