summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arrow-functions/close-paren-arrow-after-expr.js
blob: a9ecb7caaa36f98158f53e25eab49ca7be88ceaa (plain)
1
2
3
4
5
6
7
8
var caught = false;
try {
  eval("1\n)=>");
} catch (e) {
  assertEq(e instanceof SyntaxError, true);
  caught = true;
}
assertEq(caught, true);