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

Function fxRunImportRejected

xs/sources/xsModule.c:2349–2377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2347}
2348
2349void fxRunImportRejected(txMachine* the, txSlot* module, txSlot* with)
2350{
2351 if (mxModuleInstanceMeta(module)->next) {
2352 txSlot* stack = the->stack;
2353 txSlot* slot = mxModuleInstanceFulfill(module);
2354 txSlot* exception;
2355 while (slot) {
2356 slot = slot->next;
2357 mxPushSlot(slot);
2358 slot = slot->next;
2359 }
2360 mxModuleInstanceMeta(module)->next = C_NULL;
2361 exception = mxModuleInstanceMeta(with);
2362 slot = stack;
2363 while (slot > the->stack) {
2364 slot--;
2365 /* THIS */
2366 mxPushUndefined();
2367 /* FUNCTION */
2368 mxPushSlot(slot);
2369 mxCall();
2370 /* ARGUMENTS */
2371 mxPushSlot(exception);
2372 mxRunCount(1);
2373 mxPop();
2374 }
2375 the->stack = stack;
2376 }
2377}
2378
2379/* META */
2380

Callers 8

fxExecuteModulesFunction · 0.85
fxExecuteModulesRejectedFunction · 0.85
fxLoadModulesFunction · 0.85
fxLoadModulesFulfilledFunction · 0.85
fxLoadModulesRejectedFunction · 0.85
fxMapModuleDescriptorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected