tor-browser

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

new-3.js (294B)


      1 // Uncompiled, polymorphic callsite for |new|.
      2 
      3 function Foo(prop) {
      4 this.name = "Foo";
      5 this.prop = prop;
      6 }
      7 
      8 function f() {
      9 // Enter OSR here.
     10 for (var i = 0; i < 100; i++) 
     11 { }
     12 
     13 // No type information below this point.
     14 var x = new Foo("cats");
     15 return x;
     16 }
     17 
     18 assertEq(f().prop, "cats");