tor-browser

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

bug1240803.js (478B)


      1 // |jit-test| allow-oom; skip-if: !hasFunction.oomAfterAllocations
      2 
      3 (function() {
      4    g = newGlobal({newCompartment: true})
      5    dbg = new Debugger
      6    g.toggle = function(d) {
      7        if (d) {
      8            dbg.addDebuggee(g);
      9            dbg.getNewestFrame();
     10            oomAfterAllocations(2);
     11            setBreakpoint;
     12        }
     13    }
     14    g.eval("" + function f(d) { return toggle(d); })
     15    g.eval("(" + function() {
     16        f(false);
     17        f(true);
     18    } + ")()")
     19 })();