On Wed, Jan 16, 2013 at 3:49 PM, Ben Noordhuis <[email protected]> wrote:
> On Wed, Jan 16, 2013 at 11:30 AM, Andris Reinman
> <[email protected]> wrote:
>> 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.
>
> I'm not the streams2 author but that looks like a bug to me.  If you
> open an issue, we'll look into it.

Never mind, I opened one myself:

https://github.com/joyent/node/issues/4606

-- 
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

Reply via email to