Fixed #595 AS3 direct editation - protected property resolving,

Fix tests
This commit is contained in:
Jindra Petřík
2022-12-20 17:52:55 +01:00
parent 5d13387f7b
commit 9b717017ae
4 changed files with 9 additions and 3 deletions

View File

@@ -1721,6 +1721,7 @@ public class ABC implements Openable {
getSwf().clearAbcListCache();
getSwf().clearScriptCache();
getMethodIndexing();
getSwf().getAbcIndex().refreshAbc(this);
}
/**

View File

@@ -85,6 +85,8 @@ public abstract class AVM2Item extends GraphTargetItem {
}
if (object.getThroughDuplicate() instanceof FindPropertyAVM2Item) {
//TODO: this might not be a good idea - #595,
//but removing this fails testNames test
FindPropertyAVM2Item fp = (FindPropertyAVM2Item) object.getThroughDuplicate();
if (fp.propertyName instanceof FullMultinameAVM2Item) {
propertyName = fp.propertyName;