Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Bugfix: 'data' event for stdio should emit a string
Browse files Browse the repository at this point in the history
Was emitting a single element array where array[0] was the input.
  • Loading branch information
ry committed Oct 12, 2009
1 parent f09d0cd commit 12c2ea0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/node_stdio.cc
Expand Up @@ -27,10 +27,7 @@ EmitInput (Local<Value> input)
{
HandleScope scope;

Local<Array> args = Array::New(1);
args->Set(Integer::New(0), input);

Local<Value> argv[2] = { String::NewSymbol("data"), args };
Local<Value> argv[2] = { String::NewSymbol("data"), input };

emit->Call(stdio, 2, argv);
}
Expand Down

0 comments on commit 12c2ea0

Please sign in to comment.