cli: add `--expose-gc` flag available to `NODE_OPTIONS`
This commits allows users to send --expose-gc via NODE_OPTIONS environment variable.
Using node --expose-gc is possible but via NODE_OPTIONS won't work.
NODE_OPTIONS='--expose-gc' node
node: --expose-gc is not allowed in NODE_OPTIONS
CI: https://ci.nodejs.org/job/node-test-pull-request/59330/
Whoops, this needs some tweaks. I'll work on them tomorrow
CI: https://ci.nodejs.org/job/node-test-pull-request/59335/
CI: https://ci.nodejs.org/job/node-test-pull-request/59339/
With https://github.com/nodejs/node/pull/53078#discussion_r1609831586 in mind, is there a legitimate use case for the flag?
Ok, docs are gone now
CI: https://ci.nodejs.org/job/node-test-pull-request/59459/
CI: https://ci.nodejs.org/job/node-test-pull-request/59494/
CI: https://ci.nodejs.org/job/node-test-pull-request/59554/
CI: https://ci.nodejs.org/job/node-test-pull-request/59638/
Landed in b26a260ce595a464b933187c72e9ed06880f75f5