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); } }