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

Function fxGlobalSetProperty

xs/sources/xsGlobal.c:220–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220txSlot* fxGlobalSetProperty(txMachine* the, txSlot* instance, txID id, txIndex index, txFlag flag)
221{
222 txSlot* result = C_NULL;
223 if ((XS_SYMBOL_ID_COUNT <= id) && (id < XS_INTRINSICS_COUNT)) {
224 txSlot* globals = instance->next;
225 result = globals->value.table.address[id];
226 if (!result) {
227 result = fxOrdinarySetProperty(the, instance, id, index, flag);
228 globals->value.table.address[id] = result;
229 }
230 }
231 if (!result)
232 result = fxOrdinarySetProperty(the, instance, id, index, flag);
233 return result;
234}
235
236void fx_decodeURI(txMachine* the)
237{

Callers 1

_262_agent_start_auxFunction · 0.85

Calls 1

fxOrdinarySetPropertyFunction · 0.85

Tested by

no test coverage detected