Files
jpexs-decompiler/libsrc/ffdec_lib/testdata/cross_compile/src/tests/TestTryCatchInWhile.as
2021-02-08 20:15:19 +01:00

41 lines
529 B
ActionScript

package tests
{
import flash.errors.EOFError;
/**
* ...
* @author JPEXS
*/
public class TestTryCatchInWhile
{
public function run() : void
{
trace("before loop");
while (true)
{
try
{
trace("in try");
while (true)
{
trace("a");
}
//not reachable in ASC2
//trace("after inner while");
}
catch (e:EOFError)
{
continue;
}
catch (e:Error)
{
continue;
}
}
//not reachable in ASC2:
//trace("after loop");
}
}
}