Skip to content

Commit

Permalink
test: check that --expose-internals is disallowed in NODE_OPTIONS
Browse files Browse the repository at this point in the history
Add test cases that confirm that `--expose-internals` and
`--expose_internals` are disallowed in the NODE_OPTIONS environment
variable.

PR-URL: #32554
Refs: #32542
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
juanarbol authored and targos committed Apr 11, 2020
1 parent 4ffa138 commit 8c68dd4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/parallel/test-cli-node-options-disallowed.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ disallow('-c');
disallow('--interactive');
disallow('-i');
disallow('--v8-options');
disallow('--expose_internals');
disallow('--expose-internals');
disallow('--');

function disallow(opt) {
Expand Down

0 comments on commit 8c68dd4

Please sign in to comment.