summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/debug/execution-observability-02.js
blob: 2f6d65d061b3f4c1c50bc2b3b0a035a9e54137a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Test that baseline frames are marked as debuggee when resuming from
// throwing.

var g = newGlobal();
var dbg = new Debugger(g);

var hits = 0;
dbg.onEnterFrame = function (f) { hits++; };

try {
  g.eval("for (c in (function() { yield })()) h");
} catch (e) {
}

assertEq(hits, 2);