blob: 61d943812f41e36247b52eadd84e230b198ba635 (
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({newCompartment: true});
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);
|