diff --git a/CHANGELOG.md b/CHANGELOG.md index 3581340f3..902fa39d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ All notable changes to this project will be documented in this file. - AS2 - class detection - warning only if propertyname does not match getter/setter - AS2 - some minor cases in class detection - AS2 - class detection - ignore standalone directvalues +- AS1/2 - obfuscated name in forin cannot use eval ## [14.6.0] - 2021-11-22 ### Added diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/ForInActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/ForInActionItem.java index 384583c73..4b7ebc637 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/ForInActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/ForInActionItem.java @@ -20,6 +20,7 @@ import com.jpexs.decompiler.flash.SWF; import com.jpexs.decompiler.flash.SourceGeneratorLocalData; import com.jpexs.decompiler.flash.action.Action; import com.jpexs.decompiler.flash.action.model.DirectValueActionItem; +import com.jpexs.decompiler.flash.action.model.GetVariableActionItem; import com.jpexs.decompiler.flash.action.model.SetTypeActionItem; import com.jpexs.decompiler.flash.action.model.SetVariableActionItem; import com.jpexs.decompiler.flash.action.model.StoreRegisterActionItem; @@ -120,6 +121,10 @@ public class ForInActionItem extends LoopActionItem implements Block { writer.append("var "); } + if (vn instanceof GetVariableActionItem) { + ((GetVariableActionItem) vn).printObfuscatedName = true; //cannot use eval + } + stripQuotes(vn, localData, writer); }