From 12c2ea05cab7bbfdea40fabe3e6771f91719bcc8 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 12 Oct 2009 21:09:18 +0200 Subject: [PATCH] Bugfix: 'data' event for stdio should emit a string Was emitting a single element array where array[0] was the input. --- src/node_stdio.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/node_stdio.cc b/src/node_stdio.cc index e4f290468c..00c83799b4 100644 --- a/src/node_stdio.cc +++ b/src/node_stdio.cc @@ -27,10 +27,7 @@ EmitInput (Local input) { HandleScope scope; - Local args = Array::New(1); - args->Set(Integer::New(0), input); - - Local argv[2] = { String::NewSymbol("data"), args }; + Local argv[2] = { String::NewSymbol("data"), input }; emit->Call(stdio, 2, argv); }