tor-browser

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

try-catch-2.js (259B)


      1 // Control flow does not reach end of try block, code after try statement is
      2 // reachable by catch block.
      3 function f() {
      4    try {
      5 throw 3;
      6    } catch(e) {
      7    }
      8 
      9    var res = 0;
     10    for (var i=0; i<40; i++)
     11 res += 2;
     12    return res;
     13 }
     14 assertEq(f(), 80);