We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
cjs/loader.js
1 parent 4306300 commit 88c969bCopy full SHA for 88c969b
lib/internal/modules/cjs/loader.js
@@ -23,7 +23,7 @@
23
24
const { NativeModule } = require('internal/bootstrap/loaders');
25
const { pathToFileURL } = require('internal/url');
26
-const util = require('util');
+const { deprecate } = require('internal/util');
27
const vm = require('vm');
28
const assert = require('internal/assert');
29
const fs = require('fs');
@@ -182,8 +182,8 @@ function debug(...args) {
182
debuglog(...args);
183
}
184
185
-Module._debug = util.deprecate(debug, 'Module._debug is deprecated.',
186
- 'DEP0077');
+Module._debug = deprecate(debug, 'Module._debug is deprecated.',
+ 'DEP0077');
187
188
// Given a module name, and a list of paths to test, returns the first
189
// matching file in the following precedence.
0 commit comments