fix: print was returning java null, not JS undefined

This commit is contained in:
TopchetoEU 2024-09-04 10:45:14 +03:00
parent bd503ed943
commit 6f8efe74c4
Signed by: topchetoeu
GPG Key ID: 6531B8583E5F6ED4

View File

@ -337,8 +337,9 @@ public class SimpleRepl {
if (el instanceof StringValue) System.out.print(((StringValue)el).value); if (el instanceof StringValue) System.out.print(((StringValue)el).value);
else System.out.print(el.toReadable(args.env)); else System.out.print(el.toReadable(args.env));
} }
System.out.println();
return null; return Value.UNDEFINED;
})); }));
} }
private static void initEngine() { private static void initEngine() {