mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-21 20:55:49 +00:00
try in if fix
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -13,6 +13,7 @@ package
|
||||
TestTryCatch;
|
||||
TestTryCatchIfInTry;
|
||||
TestTryCatchInIf;
|
||||
TestTryCatchInIf2;
|
||||
TestTryCatchInWhile;
|
||||
TestTryCatchInWhile2;
|
||||
TestTryCatchInWhile3;
|
||||
|
||||
43
libsrc/ffdec_lib/testdata/as3_cross_compile/src/tests/TestTryCatchInIf2.as
vendored
Normal file
43
libsrc/ffdec_lib/testdata/as3_cross_compile/src/tests/TestTryCatchInIf2.as
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
package tests
|
||||
{
|
||||
|
||||
/**
|
||||
* ...
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class TestTryCatchInIf2
|
||||
{
|
||||
|
||||
public function run():void
|
||||
{
|
||||
var a:int = Math.random();
|
||||
|
||||
if (a > 10)
|
||||
{
|
||||
try
|
||||
{
|
||||
trace("a");
|
||||
return;
|
||||
}
|
||||
catch (e:Error)
|
||||
{
|
||||
trace("in catch 1");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
try
|
||||
{
|
||||
trace("b");
|
||||
}
|
||||
catch (e:Error)
|
||||
{
|
||||
trace("in catch 2");
|
||||
}
|
||||
}
|
||||
trace("after");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Binary file not shown.
@@ -5,7 +5,7 @@ package tests
|
||||
{
|
||||
public function run():*
|
||||
{
|
||||
trace("hello");
|
||||
trace("hello");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user