tor-browser

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

bug-1681256.js (576B)


      1 // |jit-test| --more-compartments;
      2 let lfCode = `
      3    var g = newGlobal();
      4    g.debuggeeGlobal = this;
      5    g.eval("(" + function () {
      6        dbg = new Debugger(debuggeeGlobal);
      7        dbg.onExceptionUnwind = function (frame, exc) {};
      8    } + ")();");
      9 `;
     10 loadFile(lfCode);
     11 // use "await" so the module is marked as TLA
     12 loadFile(lfCode + " await ''");
     13 async function loadFile(lfVarx) {
     14    try {
     15        try { evaluate(lfVarx); } catch(exc) {}
     16        let lfMod = parseModule(lfVarx);
     17        lfMomoduleLink(d);
     18        await lfMomoduleEvaluate(d);
     19    } catch (lfVare) {}
     20 }