Fixed #2234 AS1/2 postincrement/decrement inside DefineFunction2

This commit is contained in:
Jindra Petřík
2024-08-01 21:37:16 +02:00
parent 36b6855e27
commit 5fb20268b2
10 changed files with 73 additions and 27 deletions

View File

@@ -2452,4 +2452,17 @@ public class ActionScript2Test extends ActionScript2TestBase {
+ "trace(\"finish\");\r\n"
);
}
@Test
public void frame89_functionPostIncrementTest() {
compareSrc(89, "function myFunc()\r\n"
+ "{\r\n"
+ "var _loc2_ = 0;\r\n"
+ "var _loc1_ = {};\r\n"
+ "var _loc4_ = _loc1_[_loc2_++];\r\n"
+ "var _loc3_ = _loc1_[_loc2_--];\r\n"
+ "}\r\n"
+ "trace(\"functionPostIncrementTest\");\r\n"
);
}
}