mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-24 16:14:52 +00:00
goto detection... still does not work
This commit is contained in:
@@ -36,6 +36,7 @@ package
|
||||
TestForGoto;
|
||||
TestForIn;
|
||||
TestForXml;
|
||||
TestGotos;
|
||||
TestHello;
|
||||
TestIf;
|
||||
TestIfElse;
|
||||
|
||||
43
libsrc/ffdec_lib/testdata/flashdevelop/src/tests/TestGotos.as
vendored
Normal file
43
libsrc/ffdec_lib/testdata/flashdevelop/src/tests/TestGotos.as
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
package tests
|
||||
{
|
||||
|
||||
public class TestGotos
|
||||
{
|
||||
|
||||
public final function run(param1:Object):int
|
||||
{
|
||||
var _loc2_:Boolean = true;
|
||||
var _loc3_:Boolean = false;
|
||||
var _loc4_:Boolean = false;
|
||||
|
||||
if (_loc2_)
|
||||
{
|
||||
trace("A");
|
||||
}
|
||||
else if (_loc3_)
|
||||
{
|
||||
trace("B");
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
try
|
||||
{
|
||||
if (_loc2_)
|
||||
{
|
||||
return 7;
|
||||
}
|
||||
trace("x");
|
||||
}
|
||||
catch (e:Error)
|
||||
{
|
||||
trace("z");
|
||||
}
|
||||
}
|
||||
|
||||
return 89;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user