Fixed #1937 AS3 - declarations vs null

This commit is contained in:
Jindra Petřík
2023-01-22 22:15:04 +01:00
parent 313b51cd8c
commit d5b1519d2f
@@ -1789,7 +1789,8 @@ public class AVM2Code implements Cloneable {
boolean isNull = false;
if (vtype.equals(new TypeItem(DottedChain.NULL))) {
vtype = TypeItem.UNBOUNDED;
vtype = TypeItem.UNBOUNDED;
isNull = true;
}
if (declaredRegisters[reg] == null) {