mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-17 11:38:06 +00:00
Fixed #1762 AS call on integer numbers parenthesis
This commit is contained in:
@@ -2385,4 +2385,12 @@ public class ActionScript2Test extends ActionScript2TestBase {
|
||||
+ "trace(\"after\");\r\n"
|
||||
);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void frame85_numbersCallTest() {
|
||||
compareSrc(85, "trace(\"numbersCallTest\");\r\n"
|
||||
+ "var a = (5).toString();\r\n"
|
||||
+ "var b = 5.2.toString();\r\n"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1214,6 +1214,13 @@ public class ActionScript3ClassicAirDecompileTest extends ActionScript3Decompile
|
||||
false);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNumberCall() {
|
||||
decompileMethod("classic_air", "testNumberCall", "var a:String = (5).toString();\r\n"
|
||||
+ "var b:String = 5.2.toString();\r\n",
|
||||
false);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testParamNames() {
|
||||
decompileMethod("classic_air", "testParamNames", "return firstp + secondp + thirdp;\r\n",
|
||||
|
||||
@@ -1204,6 +1204,13 @@ public class ActionScript3ClassicDecompileTest extends ActionScript3DecompileTes
|
||||
false);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNumberCall() {
|
||||
decompileMethod("classic", "testNumberCall", "var a:String = (5).toString();\r\n"
|
||||
+ "var b:String = 5.2.toString();\r\n",
|
||||
false);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testParamNames() {
|
||||
decompileMethod("classic", "testParamNames", "return firstp + secondp + thirdp;\r\n",
|
||||
|
||||
Reference in New Issue
Block a user