Sign in
cobalt
/
cobalt
/
308ed6b84664d59944cd65f4b4359c28a2443be6
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
parser
/
modifier-regexp-vs-div.js
blob: 7754bcb191bfd8a696550725177befbd2c9e2408 [
file
] [
log
] [
blame
]
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
);