diff --git a/CHANGELOG.md b/CHANGELOG.md index 29c7389a2..72e2a0792 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ All notable changes to this project will be documented in this file. - [#1741] AS1/2 direct editation - new String constructor call - [#1726] Decompiling AS - missing break when on false branch vs continue on true - AS3 jumps deobfuscator +- [#1699] AS1/2 detection of unitialized vars stuck ## [14.4.0] - 2021-04-05 ### Added @@ -2211,6 +2212,7 @@ All notable changes to this project will be documented in this file. [#1748]: https://www.free-decompiler.com/flash/issues/1748 [#1741]: https://www.free-decompiler.com/flash/issues/1741 [#1726]: https://www.free-decompiler.com/flash/issues/1726 +[#1699]: https://www.free-decompiler.com/flash/issues/1699 [#1015]: https://www.free-decompiler.com/flash/issues/1015 [#1466]: https://www.free-decompiler.com/flash/issues/1466 [#1513]: https://www.free-decompiler.com/flash/issues/1513 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 e75017ae0..4ded5c6d1 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 @@ -118,25 +118,15 @@ public class ClassActionItem extends ActionItem implements Block { GetMemberActionItem gm = (GetMemberActionItem) item; if (isThis(gm.object)) { ret.add(gm.memberName); - } else { - detectUnitializedVars(gm.object, ret); } } if (item instanceof SetMemberActionItem) { SetMemberActionItem sm = (SetMemberActionItem) item; if (isThis(sm.object)) { ret.add(sm.objectName); - } else { - detectUnitializedVars(sm.object, ret); } } - if (item instanceof Block) { - Block bl = (Block) item; - for (List list : bl.getSubs()) { - detectUnitializedVars(list, ret); - } - } detectUnitializedVars(item.getAllSubItems(), ret); }