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

Function fx_Promise_resolve

xs/sources/xsPromise.c:896–910  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

894}
895
896void fx_Promise_resolve(txMachine* the)
897{
898 if (!mxIsReference(mxThis))
899 mxTypeError("this: not an object");
900 mxPushUndefined();
901 mxPushSlot(mxThis);
902 if (mxArgc > 0)
903 mxPushSlot(mxArgv(0));
904 else
905 mxPushUndefined();
906 fx_Promise_resolveAux(the);
907 mxPop();
908 mxPop();
909 mxPullSlot(mxResult);
910}
911
912void fx_Promise_resolveAux(txMachine* the)
913{

Callers

nothing calls this directly

Calls 1

fx_Promise_resolveAuxFunction · 0.85

Tested by

no test coverage detected