mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-23 20:25:31 +00:00
Fixed #2234 AS1/2 postincrement/decrement inside DefineFunction2
This commit is contained in:
@@ -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"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user