Only register methods with members
This commit is contained in:
parent
600076b46d
commit
3245bb99b2
1 changed files with 3 additions and 1 deletions
|
@ -95,8 +95,10 @@ let valueToMeta = function (sender, value, optimizeSimpleObject = false) {
|
|||
meta.members.forEach((member) => {
|
||||
if (member.type === 'method') {
|
||||
const method = value[member.name]
|
||||
member.id = objectsRegistry.add(sender, method)
|
||||
member.members = getObjectMembers(method)
|
||||
if (member.members.length > 0) {
|
||||
member.id = objectsRegistry.add(sender, method)
|
||||
}
|
||||
}
|
||||
})
|
||||
} else if (meta.type === 'buffer') {
|
||||
|
|
Loading…
Reference in a new issue