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

Function fxLoadModulesFulfilled

xs/sources/xsModule.c:1231–1252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1229}
1230
1231void fxLoadModulesFulfilled(txMachine* the)
1232{
1233 txSlot* home = mxFunctionInstanceHome(mxFunction->value.reference);
1234 txSlot* queue = home->value.home.object;
1235 txSlot* module = home->value.home.module;
1236 txSlot* internal = mxModuleInstanceInternal(module);
1237 txSlot* realm = internal->value.module.realm;
1238 txID moduleID = internal->value.module.id;
1239 mxTry(the) {
1240 mxPushReference(module);
1241 fxMapModuleDescriptor(the, realm, moduleID, the->stack, queue, C_NULL, mxArgv(0));
1242 mxPop(); // module
1243 }
1244 mxCatch(the) {
1245 mxPush(mxException);
1246 mxException = mxUndefined;
1247 fxCompleteModule(the, module, the->stack);
1248 fxRunImportRejected(the, module, module);
1249 mxPop();
1250 }
1251 fxLoadModules(the, queue);
1252}
1253
1254void fxLoadModulesRejected(txMachine* the)
1255{

Callers

nothing calls this directly

Calls 4

fxMapModuleDescriptorFunction · 0.85
fxCompleteModuleFunction · 0.85
fxRunImportRejectedFunction · 0.85
fxLoadModulesFunction · 0.85

Tested by

no test coverage detected