Skip to content

Commit

Permalink
fix GC warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Arvolear committed Apr 1, 2024
1 parent 13e3566 commit d61619c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions scripts/circom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,15 @@ export async function compile(circuitId: string, shouldUpdateConfig = true) {

const start = performance.now();

// supressing deprecation warnings
// supressing garbage collection warnings
const oldErr = console.error;
console.error = (...data: any[]) => {};
console.error = (...data: any[]) => {
if (data.length > 0 && typeof data[0] == "string" && (<string>data[0]).includes("garbage collection")) {
return;
}

oldErr(data);
};

await circuit.compile();

Expand Down

0 comments on commit d61619c

Please sign in to comment.