diff --git a/doc/api/cli.md b/doc/api/cli.md index 82cbd12d8c97e0..230927cff5097d 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -687,6 +687,23 @@ Make built-in language features like `eval` and `new Function` that generate code from strings throw an exception instead. This does not affect the Node.js `node:vm` module. +### `--expose-gc` + + + +> Stability: 1 - Experimental. This flag is inherited from V8 and is subject to +> change upstream. + +This flag will expose the gc extension from V8. + +```js +if (globalThis.gc) { + globalThis.gc(); +} +``` + ### `--dns-result-order=order`