mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
test: fix NODE_OPTIONS feature check
The configuration variable being tested is `true` if Node.js was compiled without support for NODE_OPTIONS. PR-URL: https://github.com/nodejs/node/pull/28225 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
committed by
Daniel Bevenius
parent
215fd083ea
commit
9bead0ce85
@@ -60,7 +60,7 @@ parsers.forEach((parser) => {
|
||||
});
|
||||
|
||||
// Next, repeat the same checks using NODE_OPTIONS if it is supported.
|
||||
if (process.config.variables.node_without_node_options) {
|
||||
if (!process.config.variables.node_without_node_options) {
|
||||
const env = Object.assign({}, process.env, {
|
||||
NODE_OPTIONS: `--http-parser=${parser} --max-http-header-size=1024`
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user