From 984fa30bf6678771630cebfa715d61b1ebcc342c Mon Sep 17 00:00:00 2001 From: Enyby Date: Mon, 7 Oct 2019 00:25:07 +0300 Subject: [PATCH] Fix read all stdin in JSE. --- src/jse/org/luaj/vm2/lib/jse/JseIoLib.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jse/org/luaj/vm2/lib/jse/JseIoLib.java b/src/jse/org/luaj/vm2/lib/jse/JseIoLib.java index 83a7c13c..d00d5db1 100644 --- a/src/jse/org/luaj/vm2/lib/jse/JseIoLib.java +++ b/src/jse/org/luaj/vm2/lib/jse/JseIoLib.java @@ -321,7 +321,7 @@ public class JseIoLib extends IoLib { } public int remaining() throws IOException { - return 0; + return -1; } public int peek() throws IOException, EOFException {