Skip to content

Commit b0386b4

Browse files
juanarboltargos
authored andcommittedApr 22, 2020
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. 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>
1 parent 3605a9d commit b0386b4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

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

+2
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)
Please sign in to comment.