Fixed #1887 AS3 - strict equals operator decompilation

This commit is contained in:
Jindra Petřík
2022-11-30 22:57:03 +01:00
parent 730ab47ca8
commit bfcf48a659
2 changed files with 4 additions and 1 deletions

View File

@@ -1455,6 +1455,7 @@ public class AVM2Graph extends Graph {
List<GraphTargetItem> caseValuesMapRight = new ArrayList<>();
StrictEqAVM2Item set = (StrictEqAVM2Item) stack.pop();
StrictEqAVM2Item firstSet = set;
caseValuesMapLeft.add(set.leftSide);
caseValuesMapRight.add(set.rightSide);
@@ -1521,7 +1522,7 @@ public class AVM2Graph extends Graph {
}
if ((leftReg < 0 && rightReg < 0) || (cnt == 1)) {
stack.push(set);
stack.push(firstSet);
} else {
part = part.nextParts.get(1);
GraphPart defaultPart = part;