--expose-gc


稳定性: 1 - 实验性。此标志继承自 V8,可能会在上游发生变化。

此标志将公开 V8 的 gc 扩展。

【This flag will expose the gc extension from V8.】

if (globalThis.gc) {
  globalThis.gc();
}