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:
parent
a1bb974651
commit
550a69b8b9
1 changed files with 1 additions and 1 deletions
|
|
@ -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 });
|
||||
|
|
|
|||
Loading…
Reference in a new issue