summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/bug1503071.js
blob: d34e9d598daeff2367fe23b9c8697d8ce387dd97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// |jit-test| exitstatus: 6
var g = true

setInterruptCallback(function() {
    print(getBacktrace({args: true}));
});

function foo(bt, x=3, y = eval("g")) {
    if (g) {
	g = false
	interruptIf(true);
	foo(false);
    }
    (function()  { n = bt;});
}
foo(false);