summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/bug1692833.js
blob: b56ba2930d6db0d6fd615d7a31e56abd6bf83712 (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
g13 = newGlobal({newCompartment: true})
g13.parent = this;
g13.eval("(" + function() {
    Debugger(parent).onExceptionUnwind = function(frame) {
	frame.older;
  }
} + ")()");

function foo(depth) {
    try {
	if (depth > 0) {
	    bar(depth - arguments.length);
	} else {
	    throw 1;
	}
    } catch (e) { throw e }
}
function bar(depth) {
    foo(depth);
}

try {
    foo(50);
} catch {}