Skip to content

Commit 7ee942e

Browse files
committed
console should always flush after printing anything
1 parent f6c86fc commit 7ee942e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rhino-tools/src/main/java/org/mozilla/javascript/tools/shell/ShellConsolePrinter.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ public void print(
3636
console.println(element.toString());
3737
}
3838
}
39+
40+
console.flush();
3941
} catch (IOException e) {
4042
throw Context.reportRuntimeError(e.getMessage());
4143
}

0 commit comments

Comments
 (0)