summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testContinue.js
blob: a878bbb93070109bef459a696316ff832d5924c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
function testContinue() {
    var i;
    var total = 0;
    for (i = 0; i < 20; ++i) {
        if (i == 11)
            continue;
        total++;
    }
    return total;
}
assertEq(testContinue(), 19);