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 <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
juanarbol authored and targos committed Apr 22, 2020
1 parent 3605a9d commit b0386b4
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 b0386b4

Please sign in to comment.