mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-18 05:31:53 +00:00
Fixed: AS3 with statement decompilation
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -28,6 +28,8 @@ package
|
||||
TestTryCatchLoopBreak6;
|
||||
TestTryCatchReturn;
|
||||
TestTryCatchExceptionUsage
|
||||
TestTryCatchTry;
|
||||
TestTryCatchWith;
|
||||
TestTryFinally;
|
||||
TestTryFinallyDirectReturnInFinally;
|
||||
TestTryFinallyLoop;
|
||||
@@ -38,8 +40,7 @@ package
|
||||
TestTryFinallyReturnInFinally;
|
||||
TestTryFinallyReturnNested;
|
||||
TestTryFinallyReturnNested2;
|
||||
TestTryFinallyReturnVoid;
|
||||
TestTryCatchTry;
|
||||
TestTryFinallyReturnVoid;
|
||||
|
||||
public function Main()
|
||||
{
|
||||
|
||||
39
libsrc/ffdec_lib/testdata/as3_cross_compile/src/tests/TestTryCatchWith.as
vendored
Normal file
39
libsrc/ffdec_lib/testdata/as3_cross_compile/src/tests/TestTryCatchWith.as
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
package tests
|
||||
{
|
||||
/**
|
||||
* ...
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class TestTryCatchWith
|
||||
{
|
||||
|
||||
public function run() : void
|
||||
{
|
||||
var a:MyTest = new MyTest();
|
||||
|
||||
trace("before with");
|
||||
with (a)
|
||||
{
|
||||
trace("before try");
|
||||
try
|
||||
{
|
||||
trace("in try");
|
||||
}
|
||||
catch (e:Error)
|
||||
{
|
||||
attrib = attrib + 1;
|
||||
trace("in catch");
|
||||
}
|
||||
trace("after try");
|
||||
}
|
||||
trace("after");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class MyTest
|
||||
{
|
||||
public var attrib:int = 5;
|
||||
}
|
||||
Reference in New Issue
Block a user