mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-30 17:57:02 +00:00
Fixed #1785 AS1/2 try..catch block in for..in
This commit is contained in:
@@ -2393,4 +2393,21 @@ public class ActionScript2Test extends ActionScript2TestBase {
|
||||
+ "var b = 5.2.toString();\r\n"
|
||||
);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void frame86_tryInsideForInTest() {
|
||||
compareSrc(86, "trace(\"tryInsideForInTest\");\r\n"
|
||||
+ "var obj = {};\r\n"
|
||||
+ "for(var thing in obj)\r\n"
|
||||
+ "{\r\n"
|
||||
+ "try\r\n"
|
||||
+ "{\r\n"
|
||||
+ "trace(\"a\");\r\n"
|
||||
+ "}\r\n"
|
||||
+ "catch(error:Object)\r\n"
|
||||
+ "{\r\n"
|
||||
+ "}\r\n"
|
||||
+ "}\r\n"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user