mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-13 05:18:45 +00:00
Fixed #1795 AS3 P-code - optional (default parameter values) saving
This commit is contained in:
@@ -1230,6 +1230,8 @@ public class ASM3Parser {
|
||||
for (int i = 0; i < optional.size(); i++) {
|
||||
info.optional[i] = optional.get(i);
|
||||
}
|
||||
} else {
|
||||
info.optional = new ValueKind[0];
|
||||
}
|
||||
abc.refreshMultinameNamespaceSuffixes();
|
||||
return code;
|
||||
|
||||
@@ -342,7 +342,7 @@ public class MethodInfo {
|
||||
} else {
|
||||
writer.hilightSpecial(constants.getMultiname(param_types[i]).getName(constants, fullyQualifiedNames, false, true), HighlightSpecialType.PARAM, i);
|
||||
}
|
||||
if (optional != null) {
|
||||
if (optional != null && flagHas_optional()) {
|
||||
if (i >= param_types.length - optional.length) {
|
||||
int optionalIndex = i - (param_types.length - optional.length);
|
||||
writer.appendNoHilight(" = ");
|
||||
|
||||
Reference in New Issue
Block a user