diff options
Diffstat (limited to 'js/src/jit-test/tests/basic/testBug763384.js')
-rw-r--r-- | js/src/jit-test/tests/basic/testBug763384.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/testBug763384.js b/js/src/jit-test/tests/basic/testBug763384.js new file mode 100644 index 000000000..572941366 --- /dev/null +++ b/js/src/jit-test/tests/basic/testBug763384.js @@ -0,0 +1,9 @@ +var caught = false; +try { + ''.match('('); +} catch (e) { + caught = true; + assertEq(e instanceof Error, true); + assertEq(('' + e).indexOf('SyntaxError') === -1, false); +} +assertEq(caught, true); |