summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testBug763384.js
blob: 572941366d98e4aa9942d659abfb5ca1ee48a35b (plain)
1
2
3
4
5
6
7
8
9
var caught = false;
try {
    ''.match('(');
} catch (e) {
    caught = true;
    assertEq(e instanceof Error, true);
    assertEq(('' + e).indexOf('SyntaxError') === -1, false);
}
assertEq(caught, true);