Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGus Caplan <me@gus.host>2020-03-15 03:54:15 +0300
committerGus Caplan <me@gus.host>2020-03-18 20:22:42 +0300
commit7a742ec050222dfabfa8fca07167a3b2c680fb3c (patch)
tree67e3b5be2ba2d4f218d7605dbc634da178a5e92c /src/node_options.h
parenta9270dcbeba4316b1e179b77ecb6c46af5aa8c20 (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.h1
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;