Sign in
cobalt
/
cobalt
/
c73ce7d5dfce7ae20bcc30efc5f220e0fbac12b1
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
testBug763384.js
blob: 572941366d98e4aa9942d659abfb5ca1ee48a35b [
file
] [
log
] [
blame
]
var
caught
=
false
;
try
{
''
.
match
(
'('
);
}
catch
(
e
)
{
caught
=
true
;
assertEq
(
e instanceof
Error
,
true
);
assertEq
((
''
+
e
).
indexOf
(
'SyntaxError'
)
===
-
1
,
false
);
}
assertEq
(
caught
,
true
);