diff options
author | Gus Caplan <me@gus.host> | 2020-03-15 03:54:15 +0300 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2020-03-24 09:55:10 +0300 |
commit | 36ba54e8e1532453c71a3e5952d5c10931545af3 (patch) | |
tree | 43e68b135f1db370e538d52f0319be8c5bfe9626 /src/node_options.h | |
parent | ef32069d0ce558a7f085ad481d978ccda14c8171 (diff) |
lib: add option to disable __proto__
Adds `--disable-proto` CLI option which can be set to `delete` or
`throw`.
Fixes #31951
PR-URL: https://github.com/nodejs/node/pull/32279
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Bradley Farias <bradley.meck@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com>
Diffstat (limited to 'src/node_options.h')
-rw-r--r-- | src/node_options.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_options.h b/src/node_options.h index 66635122cbb..d372a83d4e4 100644 --- a/src/node_options.h +++ b/src/node_options.h @@ -205,6 +205,7 @@ class PerProcessOptions : public Options { int64_t v8_thread_pool_size = 4; bool zero_fill_all_buffers = false; bool debug_arraybuffer_allocations = false; + std::string disable_proto; std::vector<std::string> security_reverts; bool print_bash_completion = false; |