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

Function fxRunAsync

xs/sources/xsFunction.c:652–661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

650}
651
652void fxRunAsync(txMachine* the, txSlot* instance)
653{
654 txSlot* promise = instance->next->next->next;
655 fxBeginHost(the);
656 the->scratch.kind = XS_UNDEFINED_KIND;
657 fxStepAsync(the, instance, XS_NO_STATUS);
658 fxEndHost(the);
659 mxResult->kind = promise->kind;
660 mxResult->value = promise->value;
661}
662
663void fxStepAsync(txMachine* the, txSlot* instance, txFlag status)
664{

Callers

nothing calls this directly

Calls 3

fxBeginHostFunction · 0.85
fxStepAsyncFunction · 0.85
fxEndHostFunction · 0.85

Tested by

no test coverage detected