| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6f1caad commit 9d7574e
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -684,6 +684,15 @@ difference is that `querystring.parse()` does url encoding: | |||
| 684 | 684 | { '%E5%A5%BD': '1' } | |
| 685 | 685 | ``` | |
| 686 | 686 | ||
| 687 | + <a id="DEP0077"></a> | ||
| 688 | + ### DEP0077: Module.\_debug() | ||
| 689 | + | ||
| 690 | + Type: Runtime | ||
| 691 | + | ||
| 692 | + `Module._debug()` has been deprecated. | ||
| 693 | + | ||
| 694 | + *Note*: `Module._debug()` was never documented as an officially supported API. | ||
| 695 | + | ||
| 687 | 696 | [`Buffer.allocUnsafeSlow(size)`]: buffer.html#buffer_class_method_buffer_allocunsafeslow_size | |
| 688 | 697 | [`Buffer.from(array)`]: buffer.html#buffer_class_method_buffer_from_array | |
| 689 | 698 | [`Buffer.from(buffer)`]: buffer.html#buffer_class_method_buffer_from_buffer | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -80,11 +80,11 @@ Module.globalPaths = []; | |||
| 80 | 80 | ||
| 81 | 81 | Module.wrapper = NativeModule.wrapper; | |
| 82 | 82 | Module.wrap = NativeModule.wrap; | |
| 83 | - Module._debug = util.debuglog('module'); | ||
| 84 | 83 | ||
| 85 | - // We use this alias for the preprocessor that filters it out | ||
| 86 | - const debug = Module._debug; | ||
| 84 | + const debug = util.debuglog('module'); | ||
| 87 | 85 | ||
| 86 | + Module._debug = util.deprecate(debug, 'Module._debug is deprecated.', | ||
| 87 | + 'DEP0077'); | ||
| 88 | 88 | ||
| 89 | 89 | // given a module name, and a list of paths to test, returns the first | |
| 90 | 90 | // matching file in the following precedence. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments