check-circular-layout: use globalThis.gc, not the free identifier global

check:no-free-identifiers (gates:post) flagged `global` at the budget
arm's optional gc() call. globalThis is the portable form. Script only.
This commit is contained in:
Doxa Maps 2026-10-02 19:30:09 +00:00
parent a1bb974651
commit 550a69b8b9

View file

@ -214,7 +214,7 @@ const HEAP_CEIL_MB = 300;
const times = [];
let heapDelta = 0;
for (let k = 0; k < 3; k++) {
if (global.gc) global.gc();
if (globalThis.gc) globalThis.gc();
const h0 = process.memoryUsage().heapUsed;
const t0 = process.hrtime.bigint();
await layoutCircular({ pins, states: null, box, mode: 'fourSides', opts: optsBase });