tor-browser

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

try-catch-4.js (267B)


      1 // Entering catch blocks via OSR is not possible (because the catch block
      2 // is not compiled by Ion). Don't crash.
      3 function f() {
      4    var res = 0;
      5    try {
      6 throw 1;
      7    } catch(e) {
      8 for (var i=0; i<10; i++) {
      9     res += 3;
     10 }
     11    }
     12 
     13    assertEq(res, 30);
     14 }
     15 f();