The Tor Browser
/ file comparison
Search:
summary
shortlog
changelog
graph
tags
bookmarks
branches
files
help
file
revisions
annotate
diff
comparison
raw
comparison: js/src/jit-test/tests/basic/testSlowNativeBail.js
js/src/jit-test/tests/basic/testSlowNativeBail.js
changeset 0
6474c204b198
equal
deleted
inserted
replaced
-1:000000000000
0:b4044d5bfdf0
1
function testSlowNativeBail() {
2
var a = ['0', '1', '2', '3', '+'];
3
try {
4
for (var i = 0; i < a.length; i++)
5
new RegExp(a[i]);
6
} catch (exc) {
7
assertEq(""+exc, "SyntaxError: invalid quantifier");
8
}
9
}
10
testSlowNativeBail();