-1:000000000000 | 0:b468d1acab32 |
---|---|
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(); |