Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure that stdin/stdout/stderr are not mapped 1:1 under NODERAWFS (P…
…R 18163) Previously, when linking with -sNODERAWFS, the stdin, stdout and stderr streams were respectively attached to file descriptors 0, 1 and 2 of the running Node process. This implicitly means that overriding the print, printErr, stdin, stdout and stderr handlers on the incoming module wasn't possible. This commit ensures that stdin/stdout/stderr uses the library_tty.js implementation for its printing, which leverages the console object, whenever the above handlers weren't overriden. This matches what is done when filesystem support isn't included.
- Loading branch information