aboutsummaryrefslogtreecommitdiff
path: root/lib/internal
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2018-12-12 01:24:59 +0800
committerRich Trott <rtrott@gmail.com>2018-12-14 21:22:59 -0800
commitb32e5e08b2c6dc1390d4bab1fe4e2d3670d251c8 (patch)
treeaf5a2536040caa404476ad4bc250ac7a6e6ae3f2 /lib/internal
parent6a24014ee5050c81b5e86ea6f0107494e126a027 (diff)
downloadandroid-node-v8-b32e5e08b2c6dc1390d4bab1fe4e2d3670d251c8.tar.gz
android-node-v8-b32e5e08b2c6dc1390d4bab1fe4e2d3670d251c8.tar.bz2
android-node-v8-b32e5e08b2c6dc1390d4bab1fe4e2d3670d251c8.zip
lib: remove internalBinding('config').pendingDeprecation
Instead use `require('internal/options').getOptionValue('--pending-deprecation')` PR-URL: https://github.com/nodejs/node/pull/24962 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'lib/internal')
-rw-r--r--lib/internal/bootstrap/node.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/internal/bootstrap/node.js b/lib/internal/bootstrap/node.js
index 31ab0f986c..fd503421ff 100644
--- a/lib/internal/bootstrap/node.js
+++ b/lib/internal/bootstrap/node.js
@@ -176,7 +176,7 @@ function startup() {
{
// Install legacy getters on the `util` binding for typechecking.
// TODO(addaleax): Turn into a full runtime deprecation.
- const { pendingDeprecation } = internalBinding('config');
+ const pendingDeprecation = getOptionValue('--pending-deprecation');
const utilBinding = internalBinding('util');
const types = internalBinding('types');
for (const name of [