tor-browser

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

inIon.js (352B)


      1 // Test that inIon eventually becomes truthy.
      2 // This code should never timeout.
      3 
      4 function callInIon() {
      5    return inIon();
      6 };
      7 
      8 function test() {
      9    // Test with OSR.
     10    while(!inIon());
     11 
     12    // Test with inlining.
     13    while(!callInIon());
     14 
     15    // Test with zealous gc preventing compilation.
     16    while(!inIon()) gc(this, 'shrinking');
     17 };
     18 
     19 test();