tor-browser

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

weakmark-remap2.js (589B)


      1 gczeal(0);
      2 
      3 var g1 = newGlobal({ sameZoneAs: this });
      4 
      5 // Turn on the object metadata builder because it will create internal weakmap
      6 // entries for all objects created from here on.
      7 enableShellAllocationMetadataBuilder();
      8 
      9 // Construct a pair of error objects. Perhaps this fills out the metadata table?
     10 new Error();
     11 new Error();
     12 
     13 // Construct a CCW for g1.Object, which will internally create the object
     14 // metadata table and add an entry to it.
     15 try { g1.Object } catch(e) { }
     16 
     17 // Begin an incremental GC
     18 startgc(1);
     19 
     20 // Call a scary function that does weird stuff.
     21 recomputeWrappers();