mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-30 16:31:53 +00:00
Fixed: #2486 AS Loop in loop producing gotos in some cases
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -88,6 +88,7 @@ package
|
||||
TestInnerFunctionScope;
|
||||
TestInnerIf;
|
||||
TestInnerTry;
|
||||
TestLoopInLoop;
|
||||
TestLogicalComputing;
|
||||
TestManualConvert;
|
||||
TestMetadata;
|
||||
|
||||
54
libsrc/ffdec_lib/testdata/as3_new/src/tests/TestLoopInLoop.as
vendored
Normal file
54
libsrc/ffdec_lib/testdata/as3_new/src/tests/TestLoopInLoop.as
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
package tests
|
||||
{
|
||||
|
||||
public class TestLoopInLoop
|
||||
{
|
||||
public function run():*
|
||||
{
|
||||
var a:Boolean = true;
|
||||
var b:Boolean = true;
|
||||
var c:Boolean = true;
|
||||
|
||||
|
||||
for (;;)
|
||||
{
|
||||
trace("A");
|
||||
|
||||
for (var i = 0; i < 10; i++)
|
||||
{
|
||||
if (a)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
trace("B");
|
||||
if (c)
|
||||
{
|
||||
trace("C");
|
||||
}
|
||||
else
|
||||
{
|
||||
trace("D");
|
||||
if (b)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
trace("H");
|
||||
|
||||
}
|
||||
|
||||
if (c)
|
||||
{
|
||||
trace("L");
|
||||
}
|
||||
}
|
||||
|
||||
if (a)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user