X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fas3%2Fok%2Fforward2.as;h=8ea46834b7279c3aa5596ff37e5cdb6678972973;hb=c9ef8a6292a3d3dd78f1a73cf55bdc26692c3719;hp=f17c47181d3d65ae80e29833d3ccca3d1bd21c6d;hpb=7f7a24c64b3fff28b9230b018ef035e96595d7f5;p=swftools.git diff --git a/lib/as3/ok/forward2.as b/lib/as3/ok/forward2.as index f17c471..8ea4683 100644 --- a/lib/as3/ok/forward2.as +++ b/lib/as3/ok/forward2.as @@ -11,7 +11,7 @@ package { throw new Error(); } catch (e:Error) { if(e instanceof Error) - trace("ok 1/2"); + trace("ok 1/4"); } var b = a[0]; // to trigger forward variable resolving } @@ -23,14 +23,27 @@ package { throw new Error(); } catch (e:Error) { if(e instanceof Error) - trace("ok 2/2"); + trace("ok 2/4"); } var b = a[0]; // to trigger forward variable resolving } + public function test3() + { + if(x instanceof Error) + trace("ok 3/4") + var x:Error; + try { + if(true) throw new Error(); + } catch (x:Error) { + trace("ok 4/4"); + } + } + public function Main() { test1(); test2(); + test3(); trace("[exit]"); } }