tor-browser

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

callname-eager-this1.js (241B)


      1 this.name = "outer";
      2 
      3 var sb = evalcx('');
      4 sb.name = "inner";
      5 sb.parent = this;
      6 
      7 function f() {
      8    assertEq(this.name, "outer");
      9 }
     10 
     11 evalcx('with(this) { ff = parent.f; }; (function() { eval(""); for(var i=0; i<10; i++) { ff() } })()', sb);