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

Function fxNewSetIteratorInstance

xs/sources/xsMapSet.c:1017–1030  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1015}
1016
1017txSlot* fxNewSetIteratorInstance(txMachine* the, txSlot* iterable, txInteger kind)
1018{
1019 txSlot* instance;
1020 txSlot* property;
1021 mxPush(mxSetIteratorPrototype);
1022 instance = fxNewIteratorInstance(the, iterable, mxID(_Set));
1023 property = fxLastProperty(the, instance);
1024 property->kind = XS_LIST_KIND;
1025 property->value.list.first = C_NULL;
1026 property->value.list.last = C_NULL;
1027 property = fxNextIntegerProperty(the, property, kind, XS_NO_ID, XS_INTERNAL_FLAG);
1028 mxPullSlot(mxResult);
1029 return instance;
1030}
1031
1032void fx_SetIterator_prototype_next(txMachine* the)
1033{

Callers 2

fx_Set_prototype_entriesFunction · 0.85
fx_Set_prototype_valuesFunction · 0.85

Calls 3

fxNewIteratorInstanceFunction · 0.85
fxLastPropertyFunction · 0.85
fxNextIntegerPropertyFunction · 0.85

Tested by

no test coverage detected