From 0a271f259e3c6945a650b4c297a2fdf22e953cba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sat, 7 Oct 2023 22:01:09 +0200 Subject: [PATCH] Fixed AS1/2 new keyword on empty method name --- CHANGELOG.md | 1 + .../decompiler/flash/action/model/NewMethodActionItem.java | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) 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) {