summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug787921.js
blob: 04356440609fbd7ca78b2e4653d6e9b87bd02ca1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// |jit-test| error: InternalError: too much recursion
function TestCase(n, d, e, a) {
  this.bugnumber = typeof(BUGNUMER) != 'undefined' ? BUGNUMBER : '';
  this.type = (typeof window == 'undefined' ? 'shell' : 'browser');
  gTestcases[gTc++] = this;
  if (optionName) {}
  {} {} {} // Seems to be required to crash
}
function f() {}
function g(n, h) {
    var t = g(TestCase.toString());
}
g(80, f);