summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/bug1423937.js
blob: ea4d4890a023ec5cdce956b501d9f7c9582f5038 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// |jit-test| exitstatus: 6; skip-if: getBuildConfiguration('pbl')
var global = 0;
setInterruptCallback(function() {
    foo("A");
});
function foo(x) {
    for (var i = 0; i < 1000; i++) {
	var stack = getBacktrace({args: true});
    }
    if (global > 2) return;
    global++;
    interruptIf(true);
    foo("B");
    (function()  { g = x;});
}
foo("C");