MCPcopy Create free account
hub / github.com/ICBNetwork/web3-Wallet / getSubPermit

Function getSubPermit

ses.cjs:4112–4125  ·  view source on GitHub ↗
(obj, permit, prop)

Source from the content-addressed store, hash-verified

4110 * getSubPermit()
4111 */
4112 function getSubPermit(obj, permit, prop) {
4113 const permitProp= prop=== '__proto__'? '--proto--': prop;
4114 if( objectHasOwnProperty(permit, permitProp)) {
4115 return permit[permitProp];
4116 }
4117
4118 if( typeof obj=== 'function') {
4119 if( objectHasOwnProperty(FunctionInstance, permitProp)) {
4120 return FunctionInstance[permitProp];
4121 }
4122 }
4123
4124 return undefined;
4125 }
4126
4127 /*
4128 * visitProperties()

Callers 1

visitPropertiesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected