tor-browser

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

Frame-onStep-async-03.js (371B)


      1 // Bug 1501666: assertions about the script's step mode count must take
      2 // suspended calls into account. This should not crash.
      3 
      4 var g = newGlobal({ newCompartment: true });
      5 g.eval(`
      6    async function f(y) {
      7        await true;
      8        await true;
      9    };
     10 `);
     11 
     12 g.f();
     13 g.f();
     14 
     15 var dbg = Debugger(g);
     16 dbg.onEnterFrame = function(frame) {
     17    frame.onStep = function() {}
     18 }