Fixed AS3 - direct editation - call on local register

This commit is contained in:
Jindra Petřík
2021-12-04 16:32:02 +01:00
parent 7599ba5dd0
commit dc773af1e2
8 changed files with 60 additions and 26 deletions

View File

@@ -35,6 +35,13 @@ public class ActionScript3ClassicAirDecompileTest extends ActionScript3Decompile
false);
}
@Test
public void testCallLocal() {
decompileMethod("classic_air", "testCallLocal", "var f:Function = getF();\r\n"
+ "var b:int = f(1,3);\r\n",
false);
}
@Test
public void testCatchFinally() {
decompileMethod("classic_air", "testCatchFinally", "var a:int = 5;\r\n"

View File

@@ -35,6 +35,13 @@ public class ActionScript3ClassicDecompileTest extends ActionScript3DecompileTes
false);
}
@Test
public void testCallLocal() {
decompileMethod("classic", "testCallLocal", "var f:Function = this.getF();\r\n"
+ "var b:int = f(1,3);\r\n",
false);
}
@Test
public void testCatchFinally() {
decompileMethod("classic", "testCatchFinally", "var a:* = 5;\r\n"