blob: a1ee581634761b651bd09a43c5509dcc6ad874a6 (
plain)
1
2
3
4
5
6
7
8
9
|
var caught = false;
try {
Function("a, @", "");
} catch(e) {
assertEq(e.toString().search("SyntaxError: malformed formal parameter") == -1, true);
assertEq(e.toString().search("SyntaxError: illegal character") == -1, false);
caught = true;
}
assertEq(caught, true);
|