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

Function fxNewArray

xs/sources/xsAPI.c:448–458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446/* Instances and Prototypes */
447
448txSlot* fxNewArray(txMachine* the, txIndex size)
449{
450 txSlot* instance;
451 txSlot* array;
452 mxPush(mxArrayPrototype);
453 instance = fxNewArrayInstance(the);
454 array = instance->next;
455 fxSetIndexSize(the, array, size, XS_CHUNK);
456 fxIndexArray(the, array);
457 return instance;
458}
459
460txSlot* fxNewObject(txMachine* the)
461{

Callers 9

fx_parseURLFunction · 0.85
fx_parseQueryFunction · 0.85
fxRunIDFunction · 0.85
fx_Array_prototype_withFunction · 0.85
_xsNewArrayFunction · 0.85
fx_lockdownFunction · 0.85

Calls 3

fxNewArrayInstanceFunction · 0.85
fxSetIndexSizeFunction · 0.85
fxIndexArrayFunction · 0.85

Tested by

no test coverage detected