File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -683,6 +683,15 @@ difference is that `querystring.parse()` does url encoding:
683683{ ' %E5%A5%BD' : ' 1' }
684684` ` `
685685
686+ < a id=" DEP00XX" ></a>
687+ # ## DEP00XX: Module.\_debug()
688+
689+ Type: Runtime
690+
691+ ` Module._debug()` has been deprecated.
692+
693+ * Note* : ` Module._debug()` was never documented as an officially supported API.
694+
686695[` Buffer.allocUnsafeSlow(size)` ]: buffer.html#buffer_class_method_buffer_allocunsafeslow_size
687696[` Buffer.from(array)` ]: buffer.html#buffer_class_method_buffer_from_array
688697[` 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 = [];
8080
8181Module . wrapper = NativeModule . wrapper ;
8282Module . wrap = NativeModule . wrap ;
83- Module . _debug = util . debuglog ( 'module' ) ;
8483
85- // We use this alias for the preprocessor that filters it out
86- const debug = Module . _debug ;
84+ const debug = util . debuglog ( 'module' ) ;
8785
86+ Module . _debug = util . deprecate ( debug , 'Module._debug is deprecated.' ,
87+ 'DEP00XX' ) ;
8888
8989// given a module name, and a list of paths to test, returns the first
9090// matching file in the following precedence.
You can’t perform that action at this time.
0 commit comments