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

Function fx_Iterator

xs/sources/xsGenerator.c:409–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

407}
408
409void fx_Iterator(txMachine* the)
410{
411 if (!mxHasTarget)
412 mxTypeError("call: Iterator");
413 if (fxIsSameSlot(the, mxTarget, mxFunction))
414 mxTypeError("new: Iterator");
415 mxPushSlot(mxTarget);
416 fxGetPrototypeFromConstructor(the, &mxIteratorPrototype);
417 fxNewObjectInstance(the);
418 mxPullSlot(mxResult);
419}
420
421void fx_Iterator_concat(txMachine* the)
422{

Callers

nothing calls this directly

Calls 3

fxIsSameSlotFunction · 0.85
fxNewObjectInstanceFunction · 0.85

Tested by

no test coverage detected