diff --git a/CHANGELOG.md b/CHANGELOG.md index 45d592556..3baf23913 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ All notable changes to this project will be documented in this file. - [#116] AS3 Cyclic typenames - [#116] AS3 Do not parse DoABC tags inside sprites - [#116] Cyclic buttons +- AS1/2 new keyword on empty method name ## [19.0.0] - 2023-10-01 ### Added diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/NewMethodActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/NewMethodActionItem.java index e81f43715..481a6128b 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/NewMethodActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/NewMethodActionItem.java @@ -68,9 +68,7 @@ public class NewMethodActionItem extends ActionItem { } } } - if (!blankMethod) { - writer.append("new "); - } + writer.append("new "); scriptObject.toString(writer, localData); if (!blankMethod) { if (methodName instanceof DirectValueActionItem) {