blob: 7bea2e3a95000bd84cb34541c49b6675e0823017 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// |jit-test| error: too much recursion
// Generator closed due to over-recursion shouldn't cause crash around onStep.
async function* foo() {
const g = this.newGlobal({sameZoneAs: this});
g.Debugger(this).getNewestFrame().onStep = g.evaluate(`(function() {})`);
return {};
}
function f() {
try {
f.apply(undefined, f);
} catch {
drainJobQueue();
foo().next();
}
}
foo().next();
f();
|