diff --git a/CHANGELOG.md b/CHANGELOG.md index 199516100..b9216f897 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -51,6 +51,7 @@ All notable changes to this project will be documented in this file. - AS1/2 - empty parenthesis nullpointer - AS1/2 - delete on nonmember - AS1/2 - Infinity, NaN can be used as identifiers, are normal variables +- AS2 - obfuscated class attribute names ## [14.6.0] - 2021-11-22 ### Added diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/ClassActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/ClassActionItem.java index 4ded5c6d1..7ee25e987 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/ClassActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/ClassActionItem.java @@ -16,6 +16,7 @@ */ package com.jpexs.decompiler.flash.action.model.clauses; +import com.jpexs.decompiler.flash.IdentifiersDeobfuscation; import com.jpexs.decompiler.flash.SourceGeneratorLocalData; import com.jpexs.decompiler.flash.action.Action; import com.jpexs.decompiler.flash.action.model.ActionItem; @@ -197,7 +198,7 @@ public class ClassActionItem extends ActionItem implements Block { item.getValue().toString(writer, localData).newLine(); } else { writer.append("var "); - item.getKey().toStringNoQuotes(writer, localData); + writer.append(IdentifiersDeobfuscation.printIdentifier(false, item.getKey().toStringNoQuotes(localData))); writer.append(" = "); item.getValue().toString(writer, localData); writer.append(";").newLine();