-
-
Notifications
You must be signed in to change notification settings - Fork 647
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
console.error doesn't send output to STDERR, but to STDOUT #2585
Comments
Under what environment are you running the module? More information would be helpful. |
For example, linux bash:
These 2 files are correctly populated for |
Relevant code section appears to be here: |
@dcodeIO right. Also, the strings specified by programmer shouldn't be changed (eg prepend "Error:"). This output might be parsed by something else. We can concatenate strings ourselves, if that's what we need. |
Node.js has the same behavior (and it makes sense). Now, all functions use the correct stream. Fixes AssemblyScript/assemblyscript#2585.
@mariusa why not parse around those prepended strings then? If finer-grained control is needed, |
console.error doesn't send output to STDERR, but to STDOUT, prepended with string "Error:"
console.error should send output to STDERR, similar to
Console
from as-wasiThe text was updated successfully, but these errors were encountered: