Skip to content
Browse files

fix failling test

  • Loading branch information...
1 parent 4059ab9 commit 425d24c85c8134ea7344db19bb3843b345af4d2a @devdazed devdazed committed Dec 15, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/marshal/index.js
View
5 lib/marshal/index.js
@@ -305,9 +305,10 @@ function getSerializer(type){
*/
function getDeserializer(type){
if (type.baseType === 'CompositeType'){
- var i = 0, typeLength = type.length, deserializers = [];
+ var i = 0, typeLength = type.subType.length, deserializers = [];
+
for(; i < typeLength; i += 1){
- deserializers.push( TYPES[type.subType].de );
+ deserializers.push( TYPES[type.subType[i].subType].de );
}
return compositeDeserializer(deserializers);

0 comments on commit 425d24c

Please sign in to comment.
Something went wrong with that request. Please try again.