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

Function fxProxyGetter

xs/sources/xsProxy.c:181–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181void fxProxyGetter(txMachine* the)
182{
183 txSlot* instance = fxToInstance(the, mxThis);
184 while (instance) {
185 if (mxIsProxy(instance))
186 break;
187 instance = fxGetPrototype(the, instance);
188 }
189 if (instance) {
190 txID id = the->scratch.value.at.id;
191 txIndex index = the->scratch.value.at.index;
192 fxProxyGetPropertyValue(the, instance, id, index, mxThis, mxResult);
193 }
194}
195
196void fxProxySetter(txMachine* the)
197{

Callers

nothing calls this directly

Calls 3

fxToInstanceFunction · 0.85
fxGetPrototypeFunction · 0.85
fxProxyGetPropertyValueFunction · 0.85

Tested by

no test coverage detected