tor-browser

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

inJit.js (335B)


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