summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_6/Function/line-terminator-before-arrow.js
blob: 52bdce7f3b0f7f9c6f0accbecab984ec6e189b25 (plain)
1
2
3
4
5
6
7
8
9
assertThrowsInstanceOf(() => eval("() \n => {}"), SyntaxError);
assertThrowsInstanceOf(() => eval("a \n => {}"), SyntaxError);
assertThrowsInstanceOf(() => eval("(a) /*\n*/ => {}"), SyntaxError);
assertThrowsInstanceOf(() => eval("(a, b) \n => {}"), SyntaxError);
assertThrowsInstanceOf(() => eval("(a, b = 1) \n => {}"), SyntaxError);
assertThrowsInstanceOf(() => eval("(a, ...b) \n => {}"), SyntaxError);
assertThrowsInstanceOf(() => eval("(a, b = 1, ...c) \n => {}"), SyntaxError);

reportCompare(0, 0, "ok");