Avoid sending arguments object to child process.

The arguments variable is not a real array, and gets screwed up when
sending it to the child process. This updates it to send an array
instead.

Thanks to @lackac!

Refs atom/terminal#23.
This commit is contained in:
Nathan Sobo 2014-03-19 15:34:36 -06:00
parent 8b32e30ee7
commit 24943dd526

View File

@ -87,7 +87,7 @@ class Task
if _.isFunction(callback)
@callback = callback
else
args = arguments
args.push(callback)
@send({event: 'start', args})
# Public: Send message to the task.