blob: 4ad89948296f43caf1a8bddfb8ecf3e0bc32debb (
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
25
26
27
28
29
30
31
32
|
// |jit-test| --fast-warmup
g13 = newGlobal({newCompartment: true})
g13.parent = this;
g13.eval("(" + function() {
Debugger(parent).onExceptionUnwind = function(frame) {
while (frame.older) {
frame = frame.older;
}
}
} + ")()");
function triggerUnwind() {
try {
throw 1;
} catch {}
}
function foo(depth) {
var dummy = arguments;
if (depth == 0) {
triggerUnwind();
} else {
bar(depth - 1);
}
}
function bar(depth) {
foo(depth);
}
bar(50);
|