summaryrefslogtreecommitdiff
path: root/src/node_config.cc
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2017-03-11 12:18:53 -0800
committerJames M Snell <jasnell@gmail.com>2017-04-19 09:15:50 -0700
commita16b570f8c1283db81b85ff78ce73608a4265f61 (patch)
treebc1dd9d23003dfb32d81b8aadb7d36302e703f0b /src/node_config.cc
parentd3dedb7223c54e77e7fa58c899070eaa4c3b2503 (diff)
downloadnode-new-a16b570f8c1283db81b85ff78ce73608a4265f61.tar.gz
src: add --pending-deprecation and NODE_PENDING_DEPRECATION
Command line flag and environment variable that can be used to indicate that pending deprecations should be emitted. PR-URL: https://github.com/nodejs/node/pull/11968 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_config.cc')
-rw-r--r--src/node_config.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/node_config.cc b/src/node_config.cc
index 05a163c3f1..f4729a64fe 100644
--- a/src/node_config.cc
+++ b/src/node_config.cc
@@ -49,6 +49,9 @@ static void InitConfig(Local<Object> target,
if (config_preserve_symlinks)
READONLY_BOOLEAN_PROPERTY("preserveSymlinks");
+ if (config_pending_deprecation)
+ READONLY_BOOLEAN_PROPERTY("pendingDeprecation");
+
if (!config_warning_file.empty()) {
Local<String> name = OneByteString(env->isolate(), "warningFile");
Local<String> value = String::NewFromUtf8(env->isolate(),