AS1/2: break on the end of for..in loop

This commit is contained in:
Jindra Petřík
2018-01-30 07:39:16 +01:00
parent eca98106d2
commit a7f457ad9d
8 changed files with 59 additions and 21 deletions

View File

@@ -1935,4 +1935,17 @@ public class ActionScript2Test extends ActionScript2TestBase {
+ "}\r\n"
);
}
@Test
public void frame69_forInBreakTest() {
compareSrc(69, "trace(\"forInBreakTest\");\r\n"
+ "var obj = {a:5,b:6,c:7};\r\n"
+ "for(var k in obj)\r\n"
+ "{\r\n"
+ "trace(k);\r\n"
+ "break;\r\n"
+ "}\r\n"
+ "trace(\"after\");\r\n"
);
}
}