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

Function fxNewCombinePromisesFunction

xs/sources/xsPromise.c:460–476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

458}
459
460txSlot* fxNewCombinePromisesFunction(txMachine* the, txInteger which, txSlot* already, txSlot* object)
461{
462 txSlot* result;
463 txSlot* instance;
464 txSlot* property;
465 result = fxNewHostFunction(the, fxCombinePromisesCallback, 1, XS_NO_ID, mxCombinePromisesCallbackProfileID);
466 instance = fxNewInstance(the);
467 property = fxNextIntegerProperty(the, instance, which, XS_NO_ID, XS_NO_FLAG);
468 property = property->next = fxNewSlot(the);
469 property->kind = XS_CLOSURE_KIND;
470 property->value.closure = already;
471 property = fxNextReferenceProperty(the, property, object, XS_NO_ID, XS_NO_FLAG);
472 property = mxFunctionInstanceHome(result);
473 property->value.home.object = instance;
474 mxPop();
475 return result;
476}
477
478void fxOnRejectedPromise(txMachine* the)
479{

Callers 1

fxCombinePromisesFunction · 0.85

Calls 5

fxNewHostFunctionFunction · 0.85
fxNewInstanceFunction · 0.85
fxNextIntegerPropertyFunction · 0.85
fxNewSlotFunction · 0.85
fxNextReferencePropertyFunction · 0.85

Tested by

no test coverage detected