From 7fcb9ed19f9e48ea8966a65c264a973075996a06 Mon Sep 17 00:00:00 2001 From: TopchetoEU <36534413+TopchetoEU@users.noreply.github.com> Date: Fri, 20 Sep 2024 11:38:50 +0300 Subject: [PATCH] fix: member field initializers should be iterable --- src/main/java/me/topchetoeu/jscript/compilation/ClassNode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/topchetoeu/jscript/compilation/ClassNode.java b/src/main/java/me/topchetoeu/jscript/compilation/ClassNode.java index 898009a..f265b00 100644 --- a/src/main/java/me/topchetoeu/jscript/compilation/ClassNode.java +++ b/src/main/java/me/topchetoeu/jscript/compilation/ClassNode.java @@ -61,7 +61,7 @@ public abstract class ClassNode extends FunctionNode { @Override protected void compilePreBody(CompileResult target) { for (var member : body.protoFields) { target.add(Instruction.loadThis()); - member.compile(target, false, false); + member.compile(target, false, true); } }