tor-browser

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

runOnceClosures.js (266B)


      1 compare = (function() {
      2  function inner() { return inner.caller; };
      3  globalInner = inner;
      4  globalClosure = inner();
      5  return function(f) { return f === inner; }
      6 })();
      7 
      8 assertEq(compare(globalInner), true);
      9 globalClosure();
     10 assertEq(compare(globalInner), false);