tor-browser

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

teleporting-mutable-proto.js (238B)


      1 var A = {x: 3};
      2 var B = Object.create(A);
      3 var C = Object.create(B);
      4 var D = Object.create(C);
      5 
      6 function f() {
      7    for (var i=0; i<30; i++) {
      8 assertEq(D.x, (i <= 20) ? 3 : 10);
      9 if (i === 20) {
     10     C.__proto__ = {x: 10};
     11 }
     12    }
     13 }
     14 f();