diff options
author | James M Snell <jasnell@gmail.com> | 2017-03-11 12:18:53 -0800 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2017-04-19 09:15:50 -0700 |
commit | a16b570f8c1283db81b85ff78ce73608a4265f61 (patch) | |
tree | bc1dd9d23003dfb32d81b8aadb7d36302e703f0b /src/node_internals.h | |
parent | d3dedb7223c54e77e7fa58c899070eaa4c3b2503 (diff) | |
download | android-node-v8-a16b570f8c1283db81b85ff78ce73608a4265f61.tar.gz android-node-v8-a16b570f8c1283db81b85ff78ce73608a4265f61.tar.bz2 android-node-v8-a16b570f8c1283db81b85ff78ce73608a4265f61.zip |
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_internals.h')
-rw-r--r-- | src/node_internals.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/node_internals.h b/src/node_internals.h index fa219b96cd..e07cb9d6d3 100644 --- a/src/node_internals.h +++ b/src/node_internals.h @@ -76,6 +76,10 @@ extern bool config_expose_internals; // it to stderr. extern std::string config_warning_file; // NOLINT(runtime/string) +// Set in node.cc by ParseArgs when --pending-deprecation or +// NODE_PENDING_DEPRECATION is used +extern bool config_pending_deprecation; + // Tells whether it is safe to call v8::Isolate::GetCurrent(). extern bool v8_initialized; |