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.
27 lines
395 B
27 lines
395 B
/*
|
|
* Duktape 0.11.0 would allow an empty throw statement.
|
|
*/
|
|
|
|
/*===
|
|
SyntaxError
|
|
SyntaxError
|
|
SyntaxError
|
|
===*/
|
|
|
|
try {
|
|
eval('try { throw; } catch (e) { print(e); }');
|
|
} catch (e) {
|
|
print(e.name);
|
|
}
|
|
|
|
try {
|
|
eval('try { throw } catch (e) { print(e); }');
|
|
} catch (e) {
|
|
print(e.name);
|
|
}
|
|
|
|
try {
|
|
eval('try { throw\n } catch (e) { print(e); }');
|
|
} catch (e) {
|
|
print(e.name);
|
|
}
|
|
|