mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-29 00:06:14 +00:00
Fixed #1936 AS3 - Parentheses around function definition call
This commit is contained in:
@@ -206,7 +206,7 @@ public class CallAVM2Item extends AVM2Item {
|
||||
if (receiver instanceof ThisAVM2Item) {
|
||||
recPart = "";
|
||||
}*/
|
||||
if (function.getPrecedence() > precedence) {
|
||||
if (function.getPrecedence() > precedence || (function instanceof NewFunctionAVM2Item)) {
|
||||
writer.append("(");
|
||||
function.toString(writer, localData);
|
||||
writer.append(")");
|
||||
|
||||
Reference in New Issue
Block a user