Fixed #1761 AS3 - try..finally inside another structure like if

This commit is contained in:
Jindra Petřík
2021-11-30 07:13:32 +01:00
parent fd3e3eec61
commit f1ab87f2b7
9 changed files with 46 additions and 7 deletions

View File

@@ -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>

View File

@@ -58,6 +58,7 @@ package
TestHello;
TestIf;
TestIfElse;
TestIfFinally;
TestIfInIf;
TestIfTry;
TestIgnoreAndOr;

View 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");
}
}
}
}
}