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

Function fxReduceThisItem

xs/sources/xsArray.c:697–715  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

695}
696
697void fxReduceThisItem(txMachine* the, txSlot* function, txIndex index)
698{
699 mxPushSlot(mxThis);
700 if (fxHasIndex(the, index)) {
701 /* THIS */
702 mxPushUndefined();
703 /* FUNCTION */
704 mxPushSlot(function);
705 mxCall();
706 /* ARGUMENTS */
707 mxPushSlot(mxResult);
708 mxPushSlot(mxThis);
709 mxGetIndex(index);
710 mxPushUnsigned(index);
711 mxPushSlot(mxThis);
712 mxRunCount(4);
713 mxPullSlot(mxResult);
714 }
715}
716
717txBoolean fxSetArrayLength(txMachine* the, txSlot* array, txIndex length)
718{

Callers 2

Calls 1

fxHasIndexFunction · 0.85

Tested by

no test coverage detected