MCPcopy
hub / github.com/ChromeDevTools/chrome-devtools-mcp / createIdGenerator

Function createIdGenerator

src/utils/id.ts:7–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5 */
6
7export function createIdGenerator() {
8 let i = 1;
9 return () => {
10 if (i === Number.MAX_SAFE_INTEGER) {
11 i = 0;
12 }
13 return i++;
14 };
15}
16
17export const stableIdSymbol = Symbol('stableIdSymbol');
18

Callers 3

#initializePageMethod · 0.85
getSnapshotMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected