tor-browser

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

bug1491337.js (634B)


      1 oomTest(new Function(`
      2  let kJSEmbeddingMaxTypes = 1000000;
      3  let kJSEmbeddingMaxFunctions = 1000000;
      4  let kJSEmbeddingMaxImports = 100000;
      5  const known_failures = {};
      6  function test(func, description) {
      7    known_failures[description]
      8  }
      9  function testLimit(name, min, limit, gen) {
     10    test(() => {}, \`Validate \${name} mininum\`);
     11    test(() => {}, \`Async compile \${name} over limit\`);
     12  }
     13  testLimit("types", 1, kJSEmbeddingMaxTypes, (builder, count) => {});
     14  testLimit("functions", 1, kJSEmbeddingMaxFunctions, (builder, count) => {});
     15  testLimit("imports", 1, kJSEmbeddingMaxImports, (builder, count) => {});
     16 `));