AsyncCommandChainStep and swizResponder apply wrongly arguments to result and fault functions

Description

The AsyncCommandChainStep apply wrongly the resultArgs

it should be
handlerArgs.unshift(data);
resultHandler.apply(this, handlerArgs);
instead of
resultHandler.apply(this,handlerArgs.unshift(data));

the same for fault

faultHandler.apply( null, handlerArgs.unshift( info ) );

should be
handlerArgs.unshift( info )
faultHandler.apply( null, handlerArgs );

The same problem occurs also in the swizResponder for the fault handler
faultHandler.apply( null, handlerArgs.unshift( info ) ); is wrong.

unshift returns an uint and not an array so it cannot be used as second argument of function function.apply()

Environment

None

Status

Assignee

ChrisC

Reporter

João Fernandes

Labels

None

Fix versions

Affects versions

Priority

Major
Configure