-
Notifications
You must be signed in to change notification settings - Fork 863
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
print() inside a script sometime may not print the args #1356
Comments
Feel like providing a PR with a testcase and a fix? |
Sure.. @p-bakker let's do it! |
nmondal
added a commit
to nmondal/rhino
that referenced
this issue
Jul 22, 2023
@rbri how does this PR look to you? |
@p-bakker ... things run! Now .. we need to get some committers.. how? |
As @rbri is one of the committers, I think/hope he'll take care of it :-) Otherwise, just give it a bit of time 'till one of the other comitters gets around to it, all volunteers here. |
Thanks again. |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
This is coming from here:
nmondal/cowj#35
The reason why the print() was not working is a premature optimization in the rhino code base.
Specifically:
org/mozilla/javascript/engine/Builtins.java
Has this code:
Problem happens with this, self.stdout is not flushed. If one does flush it, the result is immediate.
This is a bug and we should let Mozilla folks replace the last line as:
That should do it.
The text was updated successfully, but these errors were encountered: