MCPcopy
hub / github.com/di-sukharev/opencommit / IteratorNext

Function IteratorNext

out/cli.cjs:11097–11103  ·  view source on GitHub ↗
(iteratorRecord)

Source from the content-addressed store, hash-verified

11095 return { iterator: iterator2, nextMethod, done: false };
11096 }
11097 function IteratorNext(iteratorRecord) {
11098 const result = reflectCall(iteratorRecord.nextMethod, iteratorRecord.iterator, []);
11099 if (!typeIsObject(result)) {
11100 throw new TypeError("The iterator.next() method must return an object");
11101 }
11102 return result;
11103 }
11104 function IteratorComplete(iterResult) {
11105 return Boolean(iterResult.done);
11106 }

Callers 1

pullAlgorithmFunction · 0.85

Calls 2

reflectCallFunction · 0.85
typeIsObjectFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…