tor-browser

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

bug1565301.js (672B)


      1 // |jit-test| skip-if: !isAsmJSCompilationAvailable() || helperThreadCount() === 0
      2 
      3 const maxSize = Math.pow(2, 29) - 1;
      4 
      5 // We just don't want to crash during compilation here.
      6 
      7 evaluate(`
      8  offThreadCompileToStencil("\\
      9    g = (function(t,foreign){\\
     10        \\"use asm\\";\\
     11        var ff = foreign.ff;\\
     12        function f() {\\
     13            +ff()\\
     14        }\\
     15        return f\\
     16 ", { lineNumber: (${maxSize})});
     17 `);
     18 
     19 evaluate(`
     20  offThreadCompileToStencil("\\
     21    g = (function(t,foreign){\\
     22        \\"use asm\\";\\
     23        var ff = foreign.ff;\\
     24        function f() {\\
     25            +ff()\\
     26        }\\
     27        return f\\
     28 ", { lineNumber: (${maxSize + 1})});
     29 `);