summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testWhileWithContinue.js
blob: 823fdd9da4ec7f15f57f35c7fdfef72df499b752 (plain)
1
2
3
4
5
6
7
8
9
10
// Test using 'while' with 'continue' -- the most ancient, the most powerful,
// the most rare of all coding incantations.

var i = 0;
while (i < 12) {
    ++i;
    continue;
}
assertEq(i, 12);