Debian Codegraph @

js/src/jit-test/tests/debug/execution-observability-02.js

raw
1 // Test that baseline frames are marked as debuggee when resuming from
2 // throwing.
3
4 var g = newGlobal({newCompartment: true});
5 var dbg = new Debugger(g);
6
7 var hits = 0;
8 dbg.onEnterFrame = function (f) { hits++; };
9
10 try {
11 g.eval("for (c in (function*() { yield })()) h");
12 } catch (e) {
13 }
14
15 assertEq(hits, 2);