diff --git a/doc/api/cli.md b/doc/api/cli.md index 030e454b66e20e..af9ddd41f04436 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -673,6 +673,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`