Fixed: #2338 AS2 class detection in some minor cases

This commit is contained in:
Jindra Petřík
2024-10-04 20:02:05 +02:00
parent a4a9ba4c6b
commit baf408e776
2 changed files with 8 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ All notable changes to this project will be documented in this file.
- [#2335] AS3 direct editation - Type coercion of `&&` and `||` operators
- [#2334] AS1/2 P-code export - Do not export on(xxx) header
- [#2338] AS decompiling threads got stuck after cancelling / timeout
- [#2338] AS2 class detection in some minor cases
## [21.1.0] - 2024-09-23
### Added

View File

@@ -360,6 +360,13 @@ public class ActionScript2ClassDetector {
if (parts.size() > partsPos) {
item = parts.get(partsPos);
if (item instanceof TemporaryRegisterMark) {
if (partsPos + 1 < parts.size()) {
partsPos++;
item = parts.get(partsPos);
}
}
if (item instanceof SetMemberActionItem) {
List<String> memPath = getSetMembersPath((SetMemberActionItem) item);
if (memPath != null) {