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.
19 lines
269 B
19 lines
269 B
12 years ago
|
/*
|
||
|
* Test that we support the invalid but out-in-the-wild variation
|
||
|
* described in:
|
||
|
*
|
||
|
* https://bugs.ecmascript.org/show_bug.cgi?id=8
|
||
|
*/
|
||
|
|
||
|
/*===
|
||
|
loop
|
||
|
false
|
||
|
===*/
|
||
|
|
||
|
try {
|
||
|
print(eval("do{print('loop')}while(false)false"));
|
||
|
} catch (e) {
|
||
|
print(e.name);
|
||
|
}
|
||
|
|