tor-browser

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

bug1937654.js (345B)


      1 load(libdir + "asm.js");
      2 
      3 let template = `
      4  'use asm';
      5  var imported = foreign.imported;
      6  function main() {
      7    imported(ARGS);
      8  }
      9  return main;
     10  `;
     11 let args = new Array(100000).fill('0').join(', ');
     12 assertErrorMessage(() => new Function('stdlib', 'foreign', template.replace('ARGS', args)),
     13  SyntaxError, /too many function arguments/);