summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug867820.js
blob: 2ee5c632340de2977f7df4e022b5968256d85bdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);
}