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

Function fxIsArray

xs/sources/xsArray.c:641–659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

639}
640
641txBoolean fxIsArray(txMachine* the, txSlot* instance)
642{
643again:
644 if (instance) {
645 txSlot* internal = instance->next;
646 if (internal && (internal->flag & XS_INTERNAL_FLAG)) {
647 if ((internal->kind == XS_ARRAY_KIND) && (internal->ID == XS_ARRAY_BEHAVIOR))
648 return 1;
649 if (internal->kind == XS_PROXY_KIND) {
650 instance = internal->value.proxy.target;
651 if (instance)
652 goto again;
653 mxTypeError("revoked proxy");
654
655 }
656 }
657 }
658 return 0;
659}
660
661void fxMoveThisItem(txMachine* the, txNumber from, txNumber to)
662{

Callers 9

fxCreateArraySpeciesFunction · 0.85
fx_Array_isArrayFunction · 0.85
fx_JSON_parseFunction · 0.85
fxReviveJSONFunction · 0.85
fxStringifyJSONFunction · 0.85
fxStringifyJSONPropertyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected