Fix anon structures not working in sizeOf

This commit is contained in:
roblabla 2015-09-11 22:11:53 +00:00
parent 968617eab8
commit 86f1f23053

View File

@ -141,6 +141,9 @@ function sizeOfContainer(value, typeArgs, rootNode) {
rootNode.this = value;
for(var index in typeArgs) {
tryCatch(() => {
if (typeArgs[index].anon)
size += this.sizeOf(value, typeArgs[index].type, rootNode);
else
size += this.sizeOf(value[typeArgs[index].name], typeArgs[index].type, rootNode);
}, (e) => {
addErrorField(e, index);