tor-browser

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

new-8.js (407B)


      1 // Handle bailing from a constructor that's called from the interpreter.
      2 
      3 function yesokhellothankyou() {
      4 return 5;
      5 }
      6 
      7 function BailFromConstructor() {
      8 this.x = "cats";
      9 this.y = 5;
     10 var z = yesokhellothankyou();
     11 
     12 // Causes a bailout for purposes of inlining at the LRecompileCheck.
     13 // Yep, this is great.
     14 for (var i = 0; i < 10500; i++) {
     15 	x = 4;
     16 }
     17 
     18 return 4;
     19 }
     20 
     21 var x = new BailFromConstructor();