From b0386b4aaf343cf07b9729c74a85c758c45c36c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Arboleda?= Date: Sun, 29 Mar 2020 15:01:17 -0500 Subject: [PATCH] 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: https://github.com/nodejs/node/pull/32554 Refs: https://github.com/nodejs/node/pull/32542 Reviewed-By: Anna Henningsen Reviewed-By: Rich Trott Reviewed-By: James M Snell --- test/parallel/test-cli-node-options-disallowed.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/parallel/test-cli-node-options-disallowed.js b/test/parallel/test-cli-node-options-disallowed.js index 70341fd97b93ce..2e66b1b0d7af5d 100644 --- a/test/parallel/test-cli-node-options-disallowed.js +++ b/test/parallel/test-cli-node-options-disallowed.js @@ -25,6 +25,8 @@ disallow('-c'); disallow('--interactive'); disallow('-i'); disallow('--v8-options'); +disallow('--expose_internals'); +disallow('--expose-internals'); disallow('--'); function disallow(opt) {