michael@0: // Entering catch blocks via OSR is not possible (because the catch block michael@0: // is not compiled by Ion). Don't crash. michael@0: function f() { michael@0: var res = 0; michael@0: try { michael@0: throw 1; michael@0: } catch(e) { michael@0: for (var i=0; i<10; i++) { michael@0: res += 3; michael@0: } michael@0: } michael@0: michael@0: assertEq(res, 30); michael@0: } michael@0: f();