blob: cdde9393061c6111e33c5ad961131ce260f69061 (
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);
|