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

Function fxMapModule

xs/sources/xsModule.c:1661–1673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1659}
1660
1661txBoolean fxMapModule(txMachine* the, txSlot* realm, txID moduleID, txSlot* module, txSlot* queue, txSlot* result)
1662{
1663 txSlot* moduleMap = mxModuleMap(realm);
1664 txSlot* descriptor = moduleMap->value.reference->next;
1665 while (descriptor) {
1666 if (descriptor->ID == moduleID) {
1667 fxMapModuleDescriptor(the, realm, moduleID, module, queue, result,descriptor);
1668 return 1;
1669 }
1670 descriptor = descriptor->next;
1671 }
1672 return 0;
1673}
1674
1675void fxMapModuleDescriptor(txMachine* the, txSlot* realm, txID moduleID, txSlot* module, txSlot* queue, txSlot* result, txSlot* descriptor)
1676{

Callers 2

fxLoadModulesFunction · 0.85
fxRunImportNowFunction · 0.85

Calls 1

fxMapModuleDescriptorFunction · 0.85

Tested by

no test coverage detected