Fixed #1890 AS3 - Removing first assignment in for in loop

This commit is contained in:
Jindra Petřík
2022-12-31 23:04:39 +01:00
parent c37f9206e2
commit 238ddda150
2 changed files with 5 additions and 2 deletions

View File

@@ -20,6 +20,7 @@ All notable changes to this project will be documented in this file.
- [#1827] Video replacing VP6 reading
- [#1926] Constructors namespace taken from class - should be always public
- [#1772] AS1/2 decompilation - StackOverflow during getVariables function
- [#1890] AS3 - Removing first assignment in for in loop
### Changed
- [#1913] SVG export/import of shapes - shape exact position (bounds) is retained

View File

@@ -73,7 +73,9 @@ public class ForInAVM2Item extends LoopItem implements Block {
public ForInAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, Loop loop, InAVM2Item expression, List<GraphTargetItem> commands) {
super(instruction, lineStartIns, loop);
if (!commands.isEmpty()) {
//Commented out - see the comment in ForEachInAVM2Item
/*if (!commands.isEmpty()) {
GraphTargetItem firstAssign = commands.get(0);
if (firstAssign instanceof SetTypeAVM2Item) {
if (expression.object instanceof LocalRegAVM2Item) {
@@ -87,7 +89,7 @@ public class ForInAVM2Item extends LoopItem implements Block {
}
//locAssign.
}
}
}*/
this.expression = expression;
this.commands = commands;
}