mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
258 B
22 lines
258 B
11 years ago
|
/*
|
||
|
* Testcase for a bug reported by Aurélien Bouilland:
|
||
|
*
|
||
|
* The do-while loop never terminates in Duktape 0.7.0.
|
||
|
*/
|
||
|
|
||
|
/*===
|
||
|
20
|
||
|
22
|
||
|
24
|
||
|
26
|
||
|
===*/
|
||
|
|
||
|
var i = 0;
|
||
|
do {
|
||
|
if (i < 20) continue;
|
||
|
print(i);
|
||
|
if (i > 25) break;
|
||
|
i++;
|
||
|
} while (++i < 30);
|
||
|
|