tor-browser

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

delazification-mode-03.js (399B)


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