summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug782129.js
blob: 44a543cd95904a5fdf300119aa393776a38bb28f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Binary: cache/js-dbg-32-f1764bf06b29-linux
// Flags: --ion-eager
//

var callStack = new Array();
function enterFunc (funcName) {
  funcName += "()";
  callStack.push(funcName);
}
function exitFunc (funcName) {
  var lastFunc = callStack.pop();
  funcName += "()";
  if (lastFunc != funcName)
    print();
}
try {
  test();
} catch(exc1) {}
function test() {
  enterFunc ('test');
  test();
}
for (var l = 0; l < 50000; l++)
  exitFunc ('test');