diff options
Diffstat (limited to 'js/src/jit-test/tests/basic/testWhileWithContinue.js')
-rw-r--r-- | js/src/jit-test/tests/basic/testWhileWithContinue.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/testWhileWithContinue.js b/js/src/jit-test/tests/basic/testWhileWithContinue.js new file mode 100644 index 000000000..823fdd9da --- /dev/null +++ b/js/src/jit-test/tests/basic/testWhileWithContinue.js @@ -0,0 +1,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); + |