mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-25 04:05:34 +00:00
AS3 try..catch..finally fixes
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -16,7 +16,7 @@
|
||||
</define>
|
||||
<define append="true">
|
||||
<name>CONFIG::timeStamp</name>
|
||||
<value>'03.02.2021'</value>
|
||||
<value>'05.02.2021'</value>
|
||||
</define>
|
||||
<define append="true">
|
||||
<name>CONFIG::air</name>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
</define>
|
||||
<define append="true">
|
||||
<name>CONFIG::timeStamp</name>
|
||||
<value>'03.02.2021'</value>
|
||||
<value>'05.02.2021'</value>
|
||||
</define>
|
||||
<define append="true">
|
||||
<name>CONFIG::air</name>
|
||||
|
||||
@@ -25,6 +25,7 @@ package
|
||||
TestTryFinallyReturn;
|
||||
TestTryFinallyReturnInFinally;
|
||||
TestTryFinallyReturnNested;
|
||||
TestTryFinallyReturnNested2;
|
||||
TestTryFinallyReturnVoid;
|
||||
|
||||
public function Main()
|
||||
|
||||
64
libsrc/ffdec_lib/testdata/as3_cross_compile/src/tests/TestTryFinallyReturnNested2.as
vendored
Normal file
64
libsrc/ffdec_lib/testdata/as3_cross_compile/src/tests/TestTryFinallyReturnNested2.as
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
package tests
|
||||
{
|
||||
import flash.errors.EOFError;
|
||||
/**
|
||||
* ...
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class TestTryFinallyReturnNested2
|
||||
{
|
||||
|
||||
public function run() : String
|
||||
{
|
||||
var a:int = Math.random() * 5;
|
||||
try
|
||||
{
|
||||
try
|
||||
{
|
||||
try
|
||||
{
|
||||
trace("in try2");
|
||||
if (a > 4)
|
||||
{
|
||||
return "RET";
|
||||
}
|
||||
}
|
||||
catch (e2:Error)
|
||||
{
|
||||
trace("in catch2:e");
|
||||
}
|
||||
catch (e2:EOFError)
|
||||
{
|
||||
trace("in catch2:eof");
|
||||
}
|
||||
finally
|
||||
{
|
||||
trace("in finally2");
|
||||
}
|
||||
trace("after2");
|
||||
}
|
||||
catch (e1:Error)
|
||||
{
|
||||
trace("in catch1:e");
|
||||
}
|
||||
catch (e1:EOFError)
|
||||
{
|
||||
trace("in catch1:eof");
|
||||
}
|
||||
finally
|
||||
{
|
||||
trace("in finally1");
|
||||
}
|
||||
trace("after1");
|
||||
}
|
||||
finally
|
||||
{
|
||||
trace("in finally0");
|
||||
}
|
||||
trace("after0");
|
||||
return "RETFINAL";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Binary file not shown.
@@ -16,7 +16,7 @@
|
||||
</define>
|
||||
<define append="true">
|
||||
<name>CONFIG::timeStamp</name>
|
||||
<value>'04.02.2021'</value>
|
||||
<value>'05.02.2021'</value>
|
||||
</define>
|
||||
<define append="true">
|
||||
<name>CONFIG::air</name>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
</define>
|
||||
<define append="true">
|
||||
<name>CONFIG::timeStamp</name>
|
||||
<value>'04.02.2021'</value>
|
||||
<value>'05.02.2021'</value>
|
||||
</define>
|
||||
<define append="true">
|
||||
<name>CONFIG::air</name>
|
||||
|
||||
Reference in New Issue
Block a user