tor-browser

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

delazification-mode-00.js (428B)


      1 //|jit-test| skip-if: isLcovEnabled()
      2 
      3 let source = `
      4  function foo() {
      5    return "foo";
      6  }
      7 
      8  // Wait is skipped as the source is not registered in the stencil cache.
      9  waitForDelazificationOf(foo);
     10  assertEq(isDelazificationPopulatedFor(foo), false);
     11 `;
     12 
     13 const options = {
     14    fileName: "inner-00.js",
     15    lineNumber: 1,
     16    eagerDelazificationStrategy: "OnDemandOnly",
     17    newContext: true,
     18 };
     19 evaluate(source, options);