mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-28 18:45:33 +00:00
Fixed: AS3 direct editation - popscope in catch on continue and break
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>'09.02.2021'</value>
|
||||
<value>'20.02.2021'</value>
|
||||
</define>
|
||||
<define append="true">
|
||||
<name>CONFIG::air</name>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
</define>
|
||||
<define append="true">
|
||||
<name>CONFIG::timeStamp</name>
|
||||
<value>'09.02.2021'</value>
|
||||
<value>'20.02.2021'</value>
|
||||
</define>
|
||||
<define append="true">
|
||||
<name>CONFIG::air</name>
|
||||
|
||||
@@ -25,6 +25,8 @@ package
|
||||
TestTryCatchLoopBreak3;
|
||||
TestTryCatchLoopBreak4;
|
||||
TestTryCatchLoopBreak5;
|
||||
TestTryCatchLoopBreak6;
|
||||
TestTryCatchReturn;
|
||||
TestTryCatchExceptionUsage
|
||||
TestTryFinally;
|
||||
TestTryFinallyDirectReturnInFinally;
|
||||
|
||||
50
libsrc/ffdec_lib/testdata/as3_cross_compile/src/tests/TestTryCatchLoopBreak6.as
vendored
Normal file
50
libsrc/ffdec_lib/testdata/as3_cross_compile/src/tests/TestTryCatchLoopBreak6.as
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
package tests
|
||||
{
|
||||
import flash.errors.EOFError;
|
||||
/**
|
||||
* ...
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class TestTryCatchLoopBreak6
|
||||
{
|
||||
|
||||
|
||||
public function run() : void
|
||||
{
|
||||
var a:int;
|
||||
a = 0;
|
||||
trace("before loop");
|
||||
while (a < 10) {
|
||||
try
|
||||
{
|
||||
trace("in try");
|
||||
}
|
||||
catch(e:Error)
|
||||
{
|
||||
trace("in catch1");
|
||||
if (a > 3)
|
||||
{
|
||||
break;
|
||||
}
|
||||
try
|
||||
{
|
||||
trace("in try2");
|
||||
}
|
||||
catch(e:Error)
|
||||
{
|
||||
trace("in catch2");
|
||||
if (a > 4)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
a++;
|
||||
}
|
||||
trace("after");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
33
libsrc/ffdec_lib/testdata/as3_cross_compile/src/tests/TestTryCatchReturn.as
vendored
Normal file
33
libsrc/ffdec_lib/testdata/as3_cross_compile/src/tests/TestTryCatchReturn.as
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
package tests
|
||||
{
|
||||
/**
|
||||
* ...
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class TestTryCatchReturn
|
||||
{
|
||||
|
||||
public function run() : int
|
||||
{
|
||||
var a:int = 5;
|
||||
trace("before try");
|
||||
try
|
||||
{
|
||||
trace("in try");
|
||||
}
|
||||
catch (e:Error)
|
||||
{
|
||||
trace("in catch");
|
||||
if (a == 5)
|
||||
{
|
||||
return a;
|
||||
}
|
||||
trace("in catch2");
|
||||
}
|
||||
trace("after");
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user