Skip to content

src: add --max-semi-space-size to the options allowed in NODE_OPTIONS

--max-semi-space-size was added to the Useful V8 options in https://github.com/nodejs/node/pull/42575, but if you pass it in the NODE_OPTIONS environment variable, you still get node: --max-semi-space-size= is not allowed in NODE_OPTIONS.

Since the option is explicitly documented as being useful and since NODE_OPTIONS appears to be the supported way of passing parameters to the node process from npm, I think it should be included in the options passed through by NODE_OPTIONS.

It appears that this issue was not contemplated in the original request, although there is a comment asking for it: https://github.com/nodejs/node/issues/42511#issuecomment-1156238669

Merge request reports

Loading