For some reason process.stdout.writable is false in v0.9.6 while other
writable streams are not. Is it intentional because of the overhaul of the
Stream system or is it a bug?
In v.0.8.16:
console.log(process.stdout.writable) -> true
In v.0.9.6:
console.log(process.stdout.writable) -> false
As 'writable' is false, I can't pipe properly custom streams to stdout. For
example the following script:
var stream = new (require("stream").Stream);
stream.pipe(process.stdout);
stream.emit("data", new Buffer("test", "utf-8"));
stream.emit("end");
Outputs "test" to console in v0.8.x but nothing in v0.9.6
If I force process.stdout.writable=true then everything works as expected.
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en