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

Function Piu__jsx__

modules/piu/PC/piuService.c:756–780  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

754}
755
756void Piu__jsx__(xsMachine* the)
757{
758 xsIntegerValue c = xsToInteger(xsArgc), i;
759 xsVars(3);
760 if (xsTest(xsArg(1))) {
761 xsVar(0) = xsArg(1);
762 xsVar(1) = xsGet(xsArg(1), xsID_data);
763 }
764 else
765 xsVar(0) = xsNewObject();
766 c -= 2;
767 if (c > 0) {
768 xsVar(2) = xsNewArray(c);
769 for (i = 0; i < c; i++)
770 xsSetAt(xsVar(2), xsInteger(i), xsArg(2 + i));
771 xsSet(xsVar(0), xsID_contents, xsVar(2));
772 }
773 xsOverflow(-XS_FRAME_COUNT-2);
774 fxPush(xsArg(0));
775 fxNew(the);
776 fxPush(xsVar(1));
777 fxPush(xsVar(0));
778 fxRunCount(the, 2);
779 xsResult = fxPop();
780}
781

Callers

nothing calls this directly

Calls 2

fxNewFunction · 0.85
fxRunCountFunction · 0.85

Tested by

no test coverage detected