summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testContinueWithLabel.js
blob: b851b41de8753d05214c52ea70de55ba64bab279 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function testContinueWithLabel() {
    var i = 0;
    var j = 20;
    checkiandj :
    while (i < 10) {
        i += 1;
        checkj :
        while (j > 10) {
            j -= 1;
            if ((j % 2) == 0)
            continue checkj;
        }
    }
    return i + j;
}
assertEq(testContinueWithLabel(), 20);