mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-24 09:15:42 +00:00
Fixed: #2651 Loop breaks detection
This commit is contained in:
@@ -556,26 +556,19 @@ public class ActionScript2AssemblerTest extends ActionScript2TestBase {
|
||||
assertEquals(res, "function f()\n"
|
||||
+ "{\n"
|
||||
+ "var a = [1,2,3];\n"
|
||||
+ "loop0:\n"
|
||||
+ "for(v in a)\n"
|
||||
+ "{\n"
|
||||
+ "trace(v);\n"
|
||||
+ "var b = 0;\n"
|
||||
+ "while(true)\n"
|
||||
+ "{\n"
|
||||
+ "if(b < 10)\n"
|
||||
+ "while(b < 10)\n"
|
||||
+ "{\n"
|
||||
+ "if(b == 4)\n"
|
||||
+ "{\n"
|
||||
+ "break;\n"
|
||||
+ "trace(\"ret\");\n"
|
||||
+ "return;\n"
|
||||
+ "}\n"
|
||||
+ "b++;\n"
|
||||
+ "continue;\n"
|
||||
+ "}\n"
|
||||
+ "continue loop0;\n"
|
||||
+ "}\n"
|
||||
+ "trace(\"ret\");\n"
|
||||
+ "break;\n"
|
||||
+ "}\n"
|
||||
+ "}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user