fix: print was returning java null, not JS undefined

This commit is contained in:
2024-09-04 10:45:14 +03:00
parent bd503ed943
commit 6f8efe74c4

View File

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