tor-browser

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

bug-1756590.js (554B)


      1 // |jit-test| error: Error
      2 
      3 function asyncGC(...targets) {
      4  var finalizationRegistry = new FinalizationRegistry(() => {});
      5  for (let target of targets) {
      6    finalizationRegistry.register(target, 'target');
      7  }
      8  return Promise.resolve('tick').then(() => asyncGCDeref()).then(() => {
      9    finalizationRegistry.cleanupSome(name => { names.push(name); });
     10  });
     11 }
     12 const root = newGlobal({newCompartment: true});
     13 const dbg = new Debugger();
     14 dbg.each = asyncGC;
     15 const wrappedRoot = dbg.each (root)
     16 gczeal(14,10);
     17 evaluate(`
     18  var StructType = class {};
     19 `);