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

Function fxGetArrayLength

xs/sources/xsArray.c:573–582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

571}
572
573txNumber fxGetArrayLength(txMachine* the, txSlot* reference)
574{
575 txNumber length;
576 txSlot* instance = fxToInstance(the, reference);
577 mxPushReference(instance);
578 mxGetID(mxID(_length));
579 length = fxToLength(the, the->stack);
580 mxPop();
581 return length;
582}
583
584txIndex fxGetArrayLimit(txMachine* the, txSlot* reference)
585{

Callers 15

fxSortArrayItemsFunction · 0.85
fx_Array_prototype_atFunction · 0.85
fx_Array_prototype_fillFunction · 0.85
fx_Array_prototype_mapFunction · 0.85
fx_Array_prototype_popFunction · 0.85

Calls 2

fxToInstanceFunction · 0.85
fxToLengthFunction · 0.85

Tested by

no test coverage detected