mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-25 11:25:53 +00:00
Issue #837 AS3 try..finally without catch decompilation fix
This commit is contained in:
BIN
libsrc/ffdec_lib/testdata/as3/as3.swf
vendored
BIN
libsrc/ffdec_lib/testdata/as3/as3.swf
vendored
Binary file not shown.
22
libsrc/ffdec_lib/testdata/as3/classes/Test.as
vendored
22
libsrc/ffdec_lib/testdata/as3/classes/Test.as
vendored
@@ -887,5 +887,27 @@
|
||||
var a:Vector.<Vector.<int>> = new Vector.<Vector.<int>>();
|
||||
var b:Vector.<int> = new <int>[10,20,30];
|
||||
}
|
||||
|
||||
public function testFinallyOnly(){
|
||||
var a = 5;
|
||||
try{
|
||||
a = 9;
|
||||
trace("intry");
|
||||
}finally {
|
||||
trace("infinally");
|
||||
}
|
||||
}
|
||||
|
||||
public function testCatchFinally(){
|
||||
var a = 5;
|
||||
try{
|
||||
a = 9;
|
||||
trace("intry");
|
||||
}catch(e){
|
||||
trace("incatch");
|
||||
}finally {
|
||||
trace("infinally");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user