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

Function fxNewMapIteratorInstance

xs/sources/xsMapSet.c:494–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

492}
493
494txSlot* fxNewMapIteratorInstance(txMachine* the, txSlot* iterable, txInteger kind)
495{
496 txSlot* instance;
497 txSlot* property;
498 mxPush(mxMapIteratorPrototype);
499 instance = fxNewIteratorInstance(the, iterable, mxID(_Map));
500 property = fxLastProperty(the, instance);
501 property->kind = XS_LIST_KIND;
502 property->value.list.first = C_NULL;
503 property->value.list.last = C_NULL;
504 property = fxNextIntegerProperty(the, property, kind, XS_NO_ID, XS_INTERNAL_FLAG);
505 mxPullSlot(mxResult);
506 return instance;
507}
508
509void fx_MapIterator_prototype_next(txMachine* the)
510{

Callers 3

fx_Map_prototype_entriesFunction · 0.85
fx_Map_prototype_keysFunction · 0.85
fx_Map_prototype_valuesFunction · 0.85

Calls 3

fxNewIteratorInstanceFunction · 0.85
fxLastPropertyFunction · 0.85
fxNextIntegerPropertyFunction · 0.85

Tested by

no test coverage detected