#1125 Missing catch block when decompiling try{}catch{} block

This commit is contained in:
honfika@gmail.com
2015-12-29 09:53:46 +01:00
parent a07a3063ec
commit 6340c0efea
4 changed files with 23 additions and 2 deletions

View File

@@ -438,6 +438,17 @@ public class ActionScript3Test extends ActionScriptTestBase {
+ "trace(\"end\");\r\n", false);
}
//@Test //todo: enable test
public void testTryShouldHaveCatchOrFinally() {
decompileMethod("testTryShouldHaveCatchOrFinally", "try\r\n"
+ "{\r\n"
+ "trace(\"try body\");\r\n"
+ "}\r\n"
+ "finally\n\n"
+ "{\r\n"
+ "}\r\n", false);
}
@Test
public void testSwitch() {
decompileMethod("testSwitch", "var a:* = 5;\r\n"