Debian Codegraph @

js/src/jit-test/tests/parser/modifier-regexp-vs-div.js

raw
1 load(libdir + "syntax.js");
2
3 var postfixes = [
4 "/bar/g; @",
5 "\n/bar/g; @",
6 ];
7
8 function check_syntax_error(e, code) {
9 assertEq(e instanceof SyntaxError, true);
10 }
11
12 test_syntax(postfixes, check_syntax_error, true);