tor-browser

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

bug-1252329.js (873B)


      1 // |jit-test| allow-oom; skip-if: helperThreadCount() == 0 || !hasFunction.oomAfterAllocations
      2 
      3 var lfcode = new Array();
      4 lfcode.push("5");
      5 lfcode.push(`
      6 gczeal(8, 2);
      7 try {
      8    [new String, y]
      9 } catch (e) {}
     10 oomAfterAllocations(50);
     11 try {
     12    (5).replace(r, () => {});
     13 } catch (x) {}
     14 `);
     15 while (true) {
     16  var file = lfcode.shift(); if (file == undefined) { break; }
     17  loadFile(file)
     18 }
     19 function loadFile(lfVarx) {
     20    if (lfVarx.substr(-3) != ".js" && lfVarx.length != 1) {
     21        switch (lfRunTypeId) {
     22            case 5:
     23                var lfGlobal = newGlobal();
     24                for (lfLocal in this) {}
     25                lfGlobal.offThreadCompileToStencil(lfVarx);
     26                var stencil = lfGlobal.finishOffThreadStencil();
     27                lfGlobal.evalStencil(stencil);
     28        }
     29    } else if (!isNaN(lfVarx)) {
     30        lfRunTypeId = parseInt(lfVarx);
     31    }
     32 }