🐛 Add toString support to remote functions
This commit is contained in:
parent
85d66d2413
commit
818738ce84
2 changed files with 8 additions and 0 deletions
|
@ -175,6 +175,9 @@ const proxyFunctionProperties = function (remoteMemberFunction, metaId, name) {
|
|||
return true
|
||||
},
|
||||
get: (target, property, receiver) => {
|
||||
if (property === 'toString' && typeof target.toString === 'function') {
|
||||
return target.toString.bind(target)
|
||||
}
|
||||
if (!target.hasOwnProperty(property)) loadRemoteProperties()
|
||||
return target[property]
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue