tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

execution-observability-02.js (310B)


      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);