src: rename --security-reverts to ...-revert

It was called --security-revert prior to 12.x, but changed in
https://github.com/nodejs/node/pull/22490.

See:
https://github.com/nodejs/nodejs.org/pull/2412#issuecomment-521739752

PR-URL: https://github.com/nodejs/node/pull/29153
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Sam Roberts authored and Rich Trott committed 2019-08-17 13:32:13 -07:00
1 parent 93b341ed01
commit 5dee17bb3c
2 files changed
+7 -2

No files matched your search

+6 -1
View File
@@ -640,7 +640,12 @@ PerProcessOptionsParser::PerProcessOptionsParser(
&PerProcessOptions::debug_arraybuffer_allocations,
kAllowedInEnvironment);
AddOption("--security-reverts", "", &PerProcessOptions::security_reverts);
// 12.x renamed this inadvertently, so alias it for consistency within the
// release line, while using the original name for consistency with older
// release lines.
AddOption("--security-revert", "", &PerProcessOptions::security_reverts);
AddAlias("--security-reverts", "--security-revert");
AddOption("--completion-bash",
"print source-able bash completion script",
&PerProcessOptions::print_bash_completion);
@@ -5,7 +5,7 @@ const { spawnSync } = require('child_process');
const os = require('os');
const { signal, status, output } =
spawnSync(process.execPath, ['--security-reverts=not-a-cve']);
spawnSync(process.execPath, ['--security-revert=not-a-cve']);
assert.strictEqual(signal, null);
assert.strictEqual(status, 12);
assert.strictEqual(