summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug867820.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/ion/bug867820.js')
-rw-r--r--js/src/jit-test/tests/ion/bug867820.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/ion/bug867820.js b/js/src/jit-test/tests/ion/bug867820.js
new file mode 100644
index 000000000..2ee5c6323
--- /dev/null
+++ b/js/src/jit-test/tests/ion/bug867820.js
@@ -0,0 +1,18 @@
+
+function AddTestCase(expect, actual) {
+ new TestCase(expect, actual);
+}
+function TestCase(e, a) {
+ this.expect = e;
+ getTestCaseResult(e, a);
+}
+function getTestCaseResult(expected, actual) {
+ if (actual != expected) {}
+}
+AddRegExpCases(false, Math.pow(2,31));
+AddRegExpCases("", Math.pow(2,30) - 1);
+function AddRegExpCases(m, l) {
+ AddTestCase("");
+ AddTestCase(m, true);
+ AddTestCase(l, 0);
+}