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

Function fxArrayCacheItem

xs/sources/xsAPI.c:517–526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

515}
516
517void fxArrayCacheItem(txMachine* the, txSlot* reference, txSlot* item)
518{
519 txSlot* array = reference->value.reference->next;
520 txSlot* slot = fxNewSlot(the);
521 slot->next = array->next;
522 slot->kind = item->kind;
523 slot->value = item->value;
524 array->next = slot;
525 array->value.array.length++;
526}
527
528/* Host Constructors, Functions and Objects */
529

Callers 3

fxLinkerScriptCallbackFunction · 0.85
fxBuildHostsFunction · 0.85

Calls 1

fxNewSlotFunction · 0.85

Tested by

no test coverage detected