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

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

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

test_syntax(postfixes, check_syntax_error, true);