Fixed AS3 - direct editation - arguments object on method with activation

This commit is contained in:
Jindra Petřík
2021-12-04 14:49:38 +01:00
parent b0962137f9
commit c1dd430f43
7 changed files with 22 additions and 2 deletions

View File

@@ -1689,8 +1689,10 @@ public class AVM2SourceGenerator implements SourceGenerator {
NameAVM2Item n = (NameAVM2Item) an;
if (n.getVariableName().equals("arguments") & !n.isDefinition()) {
registerNames.add("arguments");
registerTypes.add(new TypeItem("Object"));
registerTypes.add(new TypeItem("Array"));
registerLines.add(0); //?
slotNames.add(n.getVariableName());
slotTypes.add(new TypeItem("Array"));
hasArguments = true;
break;
}