diff --git a/CHANGELOG.md b/CHANGELOG.md index 711fd5dcb..8a76b0d7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ All notable changes to this project will be documented in this file. - AS1/2 - Registers in for..in clause, proper define - AS1/2 - loops and switch break/continue vs definefunction - AS1/2 - callmethod on register instead of callfunction on var +- AS1/2 - delete operator correct localreg names ## [14.5.2] - 2021-11-20 ### Fixed diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/DeleteActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/DeleteActionItem.java index 047c13748..cfbd495b4 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/DeleteActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/DeleteActionItem.java @@ -58,14 +58,14 @@ public class DeleteActionItem extends ActionItem { writer.append("delete "); if (object != null) { object.toStringNoQuotes(writer, localData); - if (IdentifiersDeobfuscation.isValidName(false, propertyName.toStringNoQuotes(localData))) { + /*if (IdentifiersDeobfuscation.isValidName(false, propertyName.toStringNoQuotes(localData))) { writer.append("."); propertyName.toStringNoQuotes(writer, localData); - } else { + } else {*/ writer.append("["); propertyName.toString(writer, localData); writer.append("]"); - } + //} return writer; }