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 BethGriggs committed Apr 7, 2020
1 parent acac5df commit 5f01fed
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 5f01fed

Please sign in to comment.