Issue #398 AS3 p-code: fixed values with index 0 (null)

This commit is contained in:
Jindra Petk
2013-09-29 06:39:54 +02:00
parent 5b0b149b76
commit 37bd729730
3 changed files with 140 additions and 79 deletions

View File

@@ -810,9 +810,13 @@ public class AVM2Code implements Serializable {
if (info.flagHas_paramnames()) {
for (int n : info.paramNames) {
ret.append("paramname ");
ret.append("\"");
ret.append(constants.constant_string[n]);
ret.append("\"");
if (n == 0) {
ret.append("null");
} else {
ret.append("\"");
ret.append(constants.constant_string[n]);
ret.append("\"");
}
ret.append("\n");
}
}