aboutsummaryrefslogtreecommitdiff
path: root/test/parallel/test-cli-node-options.js
diff options
context:
space:
mode:
authorShelley Vohr <shelley.vohr@gmail.com>2019-10-23 11:06:57 -0700
committerShelley Vohr <shelley.vohr@gmail.com>2019-10-28 08:15:08 -0700
commit1d89c5d1e16d67962db2735efc601b48bd78255d (patch)
treed6f2ec8fca92b22d178fab89428d0a873fc47316 /test/parallel/test-cli-node-options.js
parent511f67bcb42b59c9a3a3efab8fed578db100afe1 (diff)
downloadandroid-node-v8-1d89c5d1e16d67962db2735efc601b48bd78255d.tar.gz
android-node-v8-1d89c5d1e16d67962db2735efc601b48bd78255d.tar.bz2
android-node-v8-1d89c5d1e16d67962db2735efc601b48bd78255d.zip
cli: whitelist new V8 flag in NODE_OPTIONS
Explicitly whitelists --disallow-code-generation-from-strings in NODE_OPTIONS as a new V8 flag. This flag prevents strings like eval() from performing code generation. PR-URL: https://github.com/nodejs/node/pull/30094 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-cli-node-options.js')
-rw-r--r--test/parallel/test-cli-node-options.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/parallel/test-cli-node-options.js b/test/parallel/test-cli-node-options.js
index 7e42139470..698f463b62 100644
--- a/test/parallel/test-cli-node-options.js
+++ b/test/parallel/test-cli-node-options.js
@@ -60,6 +60,7 @@ if (common.hasCrypto) {
// V8 options
expect('--abort_on-uncaught_exception', 'B\n');
+expect('--disallow-code-generation-from-strings', 'B\n');
expect('--max-old-space-size=0', 'B\n');
expect('--stack-trace-limit=100',
/(\s*at f \(\[eval\]:1:\d*\)\r?\n){100}/,