michael@0: function test1() { michael@0: try { michael@0: return "try"; michael@0: } finally { michael@0: return "finally"; michael@0: } michael@0: } michael@0: assertEq(test1(), "finally"); michael@0: michael@0: function test2() { michael@0: try { michael@0: throw 4; michael@0: } catch(e) { michael@0: return "catch"; michael@0: } finally { michael@0: return "finally"; michael@0: } michael@0: } michael@0: assertEq(test2(), "finally"); michael@0: michael@0: function test3() { michael@0: try { michael@0: throw 4; michael@0: } finally { michael@0: return "finally"; // Don't rethrow. michael@0: } michael@0: } michael@0: assertEq(test3(), "finally");