mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-30 14:41:27 -04:00
Revert "Fix anon structures not working in sizeOf"
This reverts commit 86f1f23053a1c2282562c578ac1211184f673151.
This commit is contained in:
parent
2b98c09fba
commit
a267cc1515
@ -147,10 +147,7 @@ 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);
|
||||
size += this.sizeOf(value[typeArgs[index].name], typeArgs[index].type, rootNode);
|
||||
}, (e) => {
|
||||
if (typeArgs && typeArgs[index] && typeArgs[index].name)
|
||||
addErrorField(e, typeArgs[index].name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user