fix: print was returning java null, not JS undefined
This commit is contained in:
parent
bd503ed943
commit
6f8efe74c4
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user