Skip to content

Commit

Permalink
src: rename --security-reverts to ...-revert
Browse files Browse the repository at this point in the history
It was called --security-revert prior to 12.x, but changed in
nodejs#22490.

See:
nodejs/nodejs.org#2412 (comment)
  • Loading branch information
sam-github committed Aug 15, 2019
1 parent edc2e5b commit 89a2ac8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/node_options.cc
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ PerProcessOptionsParser::PerProcessOptionsParser(
&PerProcessOptions::debug_arraybuffer_allocations,
kAllowedInEnvironment);

AddOption("--security-reverts", "", &PerProcessOptions::security_reverts);
AddOption("--security-revert", "", &PerProcessOptions::security_reverts);
AddOption("--completion-bash",
"print source-able bash completion script",
&PerProcessOptions::print_bash_completion);
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-security-revert-unknown.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 89a2ac8

Please sign in to comment.