From 6e68d4f9135204039725fb23961d396d76fdc5b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Mon, 22 Nov 2021 19:01:30 +0100 Subject: [PATCH] Fixed AS1/2 - delete operator correct localreg names --- CHANGELOG.md | 1 + .../decompiler/flash/action/model/DeleteActionItem.java | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) 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; }