summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/parser/modifier-arrow-rest.js
blob: e66aa5c37dd8f41e17b0db70b76f4350d957f098 (plain)
1
2
3
4
5
6
7
8
9
10
11
load(libdir + "syntax.js");

var postfixes = [
  "...foo) => 1 @",
];

function check_syntax_error(e, code) {
  assertEq(e instanceof SyntaxError, true);
}

test_syntax(postfixes, check_syntax_error, true);