Fixed: #2267 Script decompilation - Loop detection causing §§goto instructions in some cases

This commit is contained in:
Jindra Petřík
2024-08-08 19:15:11 +02:00
parent f219b49372
commit 50c8e3a8e3
8 changed files with 81 additions and 0 deletions

View File

@@ -130,6 +130,7 @@ package
TestWhileBreak;
TestWhileBreak2;
TestWhileContinue;
TestWhileDoWhile;
TestWhileSwitch;
TestWhileTry;
TestWhileTry2;

View File

@@ -0,0 +1,24 @@
package tests
{
public class TestWhileDoWhile
{
public function run():*
{
trace("A");
var i:int = 0;
while (i < 10)
{
trace("B");
do
{
i++;
trace("C");
} while (i < 5);
}
trace("E");
}
}
}