diff options
author | Jackson Tian <shyvo1987@gmail.com> | 2017-06-28 01:20:12 +0800 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2017-09-22 21:03:29 -0300 |
commit | 9d7574eef54de1a3675eb58328aeac17d6327de4 (patch) | |
tree | 1f790852f0e509dd8a9af5baacffbd64e3d773ee /lib | |
parent | 6f1caadb85f70bb902c078d9b7a96e3c4b36b31f (diff) | |
download | android-node-v8-9d7574eef54de1a3675eb58328aeac17d6327de4.tar.gz android-node-v8-9d7574eef54de1a3675eb58328aeac17d6327de4.tar.bz2 android-node-v8-9d7574eef54de1a3675eb58328aeac17d6327de4.zip |
module: deprecate Module._debug
The _debug of Module is undocumented and it useless here.
PR-URL: https://github.com/nodejs/node/pull/13948
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/module.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/module.js b/lib/module.js index 96f36c815a..7f25b63ddb 100644 --- a/lib/module.js +++ b/lib/module.js @@ -80,11 +80,11 @@ Module.globalPaths = []; Module.wrapper = NativeModule.wrapper; Module.wrap = NativeModule.wrap; -Module._debug = util.debuglog('module'); -// We use this alias for the preprocessor that filters it out -const debug = Module._debug; +const debug = util.debuglog('module'); +Module._debug = util.deprecate(debug, 'Module._debug is deprecated.', + 'DEP0077'); // given a module name, and a list of paths to test, returns the first // matching file in the following precedence. |