tor-browser

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

bug-1871949.js (600B)


      1 function getLogString(obj) {
      2    let log = getWatchtowerLog();
      3    return log.map(item => {
      4        assertEq(item.object, obj);
      5        if (typeof item.extra === "symbol") {
      6            item.extra = "<symbol>";
      7        }
      8        return item.kind + (item.extra ? ": " + item.extra : "");
      9    }).join("\n");
     10 }
     11 
     12 const entry = cacheEntry("");
     13 addWatchtowerTarget(entry);
     14 evaluate(entry, { "saveBytecodeWithDelazifications": true });
     15 let log = getLogString(entry);
     16 
     17 // Nothing is logged for the manipulation of reserved slots, as we
     18 // lack infrastructure to track them thus far.
     19 assertEq(log.length, 0);