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

Function fxNewArrayInstance

xs/sources/xsArray.c:682–695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

680}
681
682txSlot* fxNewArrayInstance(txMachine* the)
683{
684 txSlot* instance;
685 txSlot* property;
686 instance = fxNewObjectInstance(the);
687 instance->flag |= XS_EXOTIC_FLAG;
688 property = instance->next = fxNewSlot(the);
689 property->flag = XS_INTERNAL_FLAG | XS_DONT_DELETE_FLAG | XS_DONT_ENUM_FLAG;
690 property->ID = XS_ARRAY_BEHAVIOR;
691 property->kind = XS_ARRAY_KIND;
692 property->value.array.length = 0;
693 property->value.array.address = C_NULL;
694 return instance;
695}
696
697void fxReduceThisItem(txMachine* the, txSlot* function, txIndex index)
698{

Callers 15

fxLinkerScriptCallbackFunction · 0.85
fx_Map_groupByAuxFunction · 0.85
fxRunArgumentsFunction · 0.85
fxRunProxyFunction · 0.85
fxNewArrayFunction · 0.85
fxBuildHostsFunction · 0.85
fx_AggregateErrorFunction · 0.85
fx_RegExp_prototype_execFunction · 0.85

Calls 2

fxNewObjectInstanceFunction · 0.85
fxNewSlotFunction · 0.85

Tested by

no test coverage detected