mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-30 00:27:30 +00:00
Fixed #1761 AS3 - try..finally inside another structure like if
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -16,7 +16,7 @@
|
||||
</define>
|
||||
<define append="true">
|
||||
<name>CONFIG::timeStamp</name>
|
||||
<value>'13.03.2021'</value>
|
||||
<value>'30.11.2021'</value>
|
||||
</define>
|
||||
<define append="true">
|
||||
<name>CONFIG::air</name>
|
||||
|
||||
@@ -58,6 +58,7 @@ package
|
||||
TestHello;
|
||||
TestIf;
|
||||
TestIfElse;
|
||||
TestIfFinally;
|
||||
TestIfInIf;
|
||||
TestIfTry;
|
||||
TestIgnoreAndOr;
|
||||
|
||||
26
libsrc/ffdec_lib/testdata/as3_new/src/tests/TestIfFinally.as
vendored
Normal file
26
libsrc/ffdec_lib/testdata/as3_new/src/tests/TestIfFinally.as
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
package tests
|
||||
{
|
||||
|
||||
public class TestIfFinally
|
||||
{
|
||||
public function run():*
|
||||
{
|
||||
var a:int = Math.random();
|
||||
if (a == 5)
|
||||
{
|
||||
try
|
||||
{
|
||||
trace("in try body");
|
||||
}
|
||||
catch (e:Error)
|
||||
{
|
||||
trace("in catch");
|
||||
}
|
||||
finally
|
||||
{
|
||||
trace("in finally");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user