summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/parser/modifier-yield-without-operand-1.js
blob: 635acbe323ac6feaa4511b17aaf146d13d3f3b14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
load(libdir + "syntax.js");

var postfixes = [
  "yield, @",
  "yield; @",
];

function check_syntax_error(e, code) {
  // No need to check exception type
}

test_syntax(postfixes, check_syntax_error, true);