mirror of
https://github.com/nodejs/node-v0.x-archive.git
synced 2026-04-28 03:01:10 -04:00
Bugfix: 'data' event for stdio should emit a string
Was emitting a single element array where array[0] was the input.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user