tor-browser

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

getprop-idempotent-cache-1.js (266B)


      1 function f(o) {
      2    var res = 0;
      3    for (var i=0; i<11000; i++) {
      4        res += o.x;
      5    }
      6    return res;
      7 }
      8 
      9 function O(x) {
     10    if (x)
     11        this.x = 10;
     12 }
     13 
     14 f(new O(true));
     15 
     16 // "o.x" is now missing so the idempotent cache should invalidate f.
     17 f(new O(false));