summaryrefslogtreecommitdiff
path: root/js/src/jit-test/tests/basic/testWhileWithContinue.js
blob: 6a8e5b5919e9b622c65370fd58d0061d2b06e414 (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 < HOTLOOP+4) {
    ++i;
    continue;
}
assertEq(i, HOTLOOP+4);