Skip to content

Commit 89a2ac8

Browse files
committed
src: rename --security-reverts to ...-revert
It was called --security-revert prior to 12.x, but changed in nodejs#22490. See: nodejs/nodejs.org#2412 (comment)
1 parent edc2e5b commit 89a2ac8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/node_options.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ PerProcessOptionsParser::PerProcessOptionsParser(
640640
&PerProcessOptions::debug_arraybuffer_allocations,
641641
kAllowedInEnvironment);
642642

643-
AddOption("--security-reverts", "", &PerProcessOptions::security_reverts);
643+
AddOption("--security-revert", "", &PerProcessOptions::security_reverts);
644644
AddOption("--completion-bash",
645645
"print source-able bash completion script",
646646
&PerProcessOptions::print_bash_completion);

test/parallel/test-security-revert-unknown.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { spawnSync } = require('child_process');
55
const os = require('os');
66

77
const { signal, status, output } =
8-
spawnSync(process.execPath, ['--security-reverts=not-a-cve']);
8+
spawnSync(process.execPath, ['--security-revert=not-a-cve']);
99
assert.strictEqual(signal, null);
1010
assert.strictEqual(status, 12);
1111
assert.strictEqual(

0 commit comments

Comments
 (0)