Source code
Revision control
Copy as Markdown
Other Tools
var caught = false;
try {
eval("1\n)=>");
} catch (e) {
assertEq(e instanceof SyntaxError, true);
caught = true;
}
assertEq(caught, true);
var caught = false;
try {
eval("1\n)=>");
} catch (e) {
assertEq(e instanceof SyntaxError, true);
caught = true;
}
assertEq(caught, true);