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

Function fxRunImportFulfilled

xs/sources/xsModule.c:2321–2347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2319}
2320
2321void fxRunImportFulfilled(txMachine* the, txSlot* module, txSlot* with)
2322{
2323 if (mxModuleInstanceMeta(module)->next) {
2324 txSlot* stack = the->stack;
2325 txSlot* slot = mxModuleInstanceFulfill(module);
2326 while (slot) {
2327 mxPushSlot(slot);
2328 slot = slot->next;
2329 slot = slot->next;
2330 }
2331 mxModuleInstanceMeta(module)->next = C_NULL;
2332 slot = stack;
2333 while (slot > the->stack) {
2334 slot--;
2335 /* THIS */
2336 mxPushUndefined();
2337 /* FUNCTION */
2338 mxPushSlot(slot);
2339 mxCall();
2340 /* ARGUMENTS */
2341 mxPushReference(with);
2342 mxRunCount(1);
2343 mxPop();
2344 }
2345 the->stack = stack;
2346 }
2347}
2348
2349void fxRunImportRejected(txMachine* the, txSlot* module, txSlot* with)
2350{

Callers 3

fxExecuteModulesFunction · 0.85
fxMapModuleDescriptorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected