mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 23:00:46 +00:00
AS1/2: eval fixed for this
This commit is contained in:
@@ -54,9 +54,11 @@ public class GetVariableActionItem extends ActionItem {
|
||||
@Override
|
||||
public GraphTextWriter appendTo(GraphTextWriter writer, LocalData localData) throws InterruptedException {
|
||||
if((!(name instanceof DirectValueActionItem)) || (!((DirectValueActionItem)name).isString()) ||(!Deobfuscation.isValidName(((DirectValueActionItem)name).toStringNoQuotes(localData)))){
|
||||
writer.append("eval(");
|
||||
name.appendTo(writer, localData);
|
||||
return writer.append(")");
|
||||
if((!((DirectValueActionItem)name).toStringNoQuotes(localData).equals("this"))&&(!((DirectValueActionItem)name).toStringNoQuotes(localData).equals("super"))){
|
||||
writer.append("eval(");
|
||||
name.appendTo(writer, localData);
|
||||
return writer.append(")");
|
||||
}
|
||||
}
|
||||
return stripQuotes(name, localData, writer);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user