Skip to content

Commit 12c2ea0

Browse files
committed
Bugfix: 'data' event for stdio should emit a string
Was emitting a single element array where array[0] was the input.
1 parent f09d0cd commit 12c2ea0

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/node_stdio.cc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ EmitInput (Local<Value> input)
2727
{
2828
HandleScope scope;
2929

30-
Local<Array> args = Array::New(1);
31-
args->Set(Integer::New(0), input);
32-
33-
Local<Value> argv[2] = { String::NewSymbol("data"), args };
30+
Local<Value> argv[2] = { String::NewSymbol("data"), input };
3431

3532
emit->Call(stdio, 2, argv);
3633
}

0 commit comments

Comments
 (0)