Fixed: #2474 Gotos incorrectly decompiled

This commit is contained in:
Jindra Petřík
2025-06-29 22:58:28 +02:00
parent 483b673c6f
commit e6fb646b1b
18 changed files with 612 additions and 16 deletions

View File

@@ -283,12 +283,13 @@ public class ActionScript3AssembledDecompileTest extends ActionScript3DecompileT
+ "if(b)\r\n"
+ "{\r\n"
+ "trace(\"a\");\r\n"
+ "addr39:\r\n"
+ "trace(\"c\");\r\n"
+ "}\r\n"
+ "break;\r\n"
+ "}\r\n"
+ "trace(\"b\");\r\n"
+ "trace(\"c\");\r\n"
+ "break;\r\n"
+ "§§goto(addr39);\r\n"
+ "case 2:\r\n"
+ "trace(\"case2\");\r\n"
+ "}\r\n",

View File

@@ -726,7 +726,7 @@ public class ActionScript3ClassTest extends ActionScript3DecompileTestBase {
public void testHaxeStaticVars() {
/*
Static vars in Haxe are initialized in script initializer (normal flash uses class initializer)
*/
*/
decompileScriptPack("haxe", "tests_classes.TestStaticVars", "package tests_classes\n"
+ "{\n"
+ " public class TestStaticVars\n"

View File

@@ -61,7 +61,7 @@ public class AS3Generator {
sortedPacks.put(pack.getClassPath().toRawString(), pack);
}
s.append("/*\r\n"
+ " * Copyright (C) 2010-2024 JPEXS, All rights reserved.\r\n"
+ " * Copyright (C) 2010-2025 JPEXS, All rights reserved.\r\n"
+ " * \r\n"
+ " * This library is free software; you can redistribute it and/or\r\n"
+ " * modify it under the terms of the GNU Lesser General Public\r\n"