tor-browser

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

async-gen-yield-loop.js (204B)


      1 // Continuation after yield shouldn't consume extra stack space.
      2 async function* asyncGen() {
      3  while (true) {
      4    yield;
      5  }
      6 }
      7 
      8 const iter = asyncGen();
      9 for (let i = 0; i < 3000; i++) {
     10  iter.next();
     11 }