Fixed: AS3 jump deobfuscator - fix for try..catch clauses

This commit is contained in:
Jindra Petřík
2021-03-27 20:50:54 +01:00
parent b7e418f6b6
commit f7ffe7f1af
7 changed files with 206 additions and 16 deletions

View File

@@ -333,6 +333,29 @@ public class ActionScript3AssembledDecompileTest extends ActionScript3DecompileT
false);
}
@Test
public void testTryWhile() {
decompileMethod("assembled", "testTryWhile", "try\r\n"
+ "{\r\n"
+ "var c:String = \"aa\";\r\n"
+ "while(c)\r\n"
+ "{\r\n"
+ "if(b)\r\n"
+ "{\r\n"
+ "break;\r\n"
+ "}\r\n"
+ "c = c.Object;\r\n"
+ "}\r\n"
+ "}\r\n"
+ "catch(e:Error)\r\n"
+ "{\r\n"
+ "browserMode = false;\r\n"
+ "return;\r\n"
+ "}\r\n"
+ "trace(\"finish\");\r\n",
false);
}
@Test
public void testUnnamedException() {
decompileMethod("assembled", "testUnnamedException", "var _loc5_:int = 5;\r\n"