Browse Source

Bugfix: 'data' event for stdio should emit a string

Was emitting a single element array where array[0] was the input.
v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
12c2ea05ca
  1. 5
      src/node_stdio.cc

5
src/node_stdio.cc

@ -27,10 +27,7 @@ EmitInput (Local<Value> input)
{ {
HandleScope scope; HandleScope scope;
Local<Array> args = Array::New(1); Local<Value> argv[2] = { String::NewSymbol("data"), input };
args->Set(Integer::New(0), input);
Local<Value> argv[2] = { String::NewSymbol("data"), args };
emit->Call(stdio, 2, argv); emit->Call(stdio, 2, argv);
} }

Loading…
Cancel
Save