Fixed #1785 AS1/2 try..catch block in for..in

This commit is contained in:
Jindra Petřík
2022-11-05 11:38:13 +01:00
parent 0d4945b8d6
commit 0c84d5c6bd
5 changed files with 41 additions and 5 deletions

View File

@@ -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"
);
}
}