MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxGetPrototype

Function fxGetPrototype

xs/sources/xsType.c:147–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147txSlot* fxGetPrototype(txMachine* the, txSlot* instance)
148{
149 txSlot* prototype = instance->value.instance.prototype;
150#if mxAliasInstance
151 if (prototype) {
152 if (prototype->ID) {
153 txSlot* alias = the->aliasArray[prototype->ID];
154 if (alias)
155 prototype = alias;
156 }
157 }
158#endif
159 return prototype;
160}
161
162txSlot* fxNewInstance(txMachine* the)
163{

Callers 15

fxRunIDFunction · 0.85
xsRun.cFile · 0.85
fxIsInstanceOfFunction · 0.85
fxArrayLengthGetterFunction · 0.85
fxArrayLengthSetterFunction · 0.85
fxStringAccessorGetterFunction · 0.85
fxProxyGetterFunction · 0.85
fxProxySetterFunction · 0.85
fxTypedArrayGetterFunction · 0.85
fxTypedArraySetterFunction · 0.85
fxOrdinaryGetPropertyFunction · 0.85
fxOrdinaryGetPrototypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected