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

Function idMaker

examples/base/instrumentation/xsuse/main.js:27–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25let buffer = new ArrayBuffer(4);
26let promise_a = new Promise(empty), promise_b = new Promise(empty), promises = [promise_a, promise_b];
27function* idMaker() {
28 let index = 0;
29 while (true)
30 yield index++;
31}
32
33// determine the size of one slot -- assumes number property takes one slot
34const holdOneSlot = {};

Callers 1

main.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected