mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-17 18:22:09 +00:00
AS3 test methods separated to classes, Fixed AS3: get/set slot for global scope
This commit is contained in:
30
libsrc/ffdec_lib/testdata/flashdevelop/src/tests/TestTry.as
vendored
Normal file
30
libsrc/ffdec_lib/testdata/flashdevelop/src/tests/TestTry.as
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
package tests
|
||||
{
|
||||
|
||||
public class TestTry
|
||||
{
|
||||
public function run():*
|
||||
{
|
||||
var i:int = 0;
|
||||
i = 7;
|
||||
try
|
||||
{
|
||||
trace("try body");
|
||||
}
|
||||
catch (e:DefinitionError)
|
||||
{
|
||||
trace("catched DefinitionError");
|
||||
}
|
||||
catch (e:Error)
|
||||
{
|
||||
trace("Error message:" + e.message);
|
||||
trace("Stacktrace:" + e.getStackTrace());
|
||||
}
|
||||
finally
|
||||
{
|
||||
trace("Finally part");
|
||||
}
|
||||
trace("end");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user