tor-browser

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

grandproto.js (279B)


      1 function A()
      2 {
      3    this.a = 77;
      4    this.b = 88;
      5 }
      6 
      7 function B()
      8 {
      9 }
     10 
     11 B.prototype = new A;
     12 
     13 function C()
     14 {
     15 }
     16 
     17 C.prototype = new B;
     18 
     19 function f() {
     20    var o = new C;
     21    var z;
     22    for (var i = 0; i < 5; ++i) {
     23 z = o.a;
     24 assertEq(z, 77);
     25    }
     26 }
     27 
     28 f();