Skip to content

Commit 2383373

Browse files
committed
test: check that --expose-internals is disallowed in NODE_OPTIONS
Add test cases that confirm that `--expose-internals` and `--expose_internals` are disallowed in the NODE_OPTIONS environment variable.
1 parent cd1db2d commit 2383373

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/parallel/test-cli-node-options-disallowed.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ disallow('-c');
2525
disallow('--interactive');
2626
disallow('-i');
2727
disallow('--v8-options');
28+
disallow('--expose_internals');
29+
disallow('--expose-internals');
2830
disallow('--');
2931

3032
function disallow(opt) {

0 commit comments

Comments
 (0)