blob: 726866a731beef1ace638033256bf158671014d5 (
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
|
// |jit-test| --fast-warmup; --no-threads
let g = newGlobal({ newCompartment: true});
let d = new Debugger;
g.eval("function foo() { invokeInterruptCallback(() => {}) }");
g.eval("function bar() { foo(); }");
// Warp-compile.
with ({}) {}
setInterruptCallback(function() { return true; });
for (var i = 0; i < 100; i++) {
g.bar();
}
// Trigger a forced return from an inlined frame
setInterruptCallback(function() {
d.addDebuggee(g)
d.getNewestFrame().onStep = function() {
d.removeDebuggee(g);
return { return: 0 };
}
return true
});
g.bar();
|