From 3a858726c8d3b258bd7ba074b35eee344b636498 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Mon, 29 Nov 2021 09:00:12 +0100 Subject: [PATCH] Fixed AS1/2 - newobject deobfuscated name --- CHANGELOG.md | 1 + .../decompiler/flash/action/model/NewObjectActionItem.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b9216f897..47ca781cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -52,6 +52,7 @@ All notable changes to this project will be documented in this file. - AS1/2 - delete on nonmember - AS1/2 - Infinity, NaN can be used as identifiers, are normal variables - AS2 - obfuscated class attribute names +- AS1/2 - newobject deobfuscated name ## [14.6.0] - 2021-11-22 ### Added diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/NewObjectActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/NewObjectActionItem.java index 96ce4b961..5b9347478 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/NewObjectActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/NewObjectActionItem.java @@ -16,6 +16,7 @@ */ package com.jpexs.decompiler.flash.action.model; +import com.jpexs.decompiler.flash.IdentifiersDeobfuscation; import com.jpexs.decompiler.flash.SourceGeneratorLocalData; import com.jpexs.decompiler.flash.action.swf5.ActionNewObject; import com.jpexs.decompiler.flash.helpers.GraphTextWriter; @@ -54,7 +55,7 @@ public class NewObjectActionItem extends ActionItem { @Override public GraphTextWriter appendTo(GraphTextWriter writer, LocalData localData) throws InterruptedException { writer.append("new "); - stripQuotes(objectName, localData, writer); + writer.append(IdentifiersDeobfuscation.printIdentifier(false, objectName.toStringNoQuotes(localData))); writer.spaceBeforeCallParenthesies(arguments.size()); writer.append("("); for (int t = 0; t < arguments.size(); t++) {