summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/parser/modifier-regexp-vs-div.js
blob: 7754bcb191bfd8a696550725177befbd2c9e2408 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
load(libdir + "syntax.js");

var postfixes = [
  "/bar/g; @",
  "\n/bar/g; @",
];

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

test_syntax(postfixes, check_syntax_error, true);