module: remove usage of require('util') · nodejs/node@d6317d0 (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Commit d6317d0
authored and
committed
module: remove usage of require('util')
Use `require('internal/util/debuglog').debuglog` instead of `require('util').debuglog` in `lib/internal/modules/esm/create_dynamic_module.js`. PR-URL: #26803Refs: #26546Reviewed-By: Ruben Bridgewater ruben@bridgewater.de Reviewed-By: James M Snell jasnell@gmail.com Reviewed-By: Yongsheng Zhang zyszys98@gmail.com
File tree
1 file changed
lines changed
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -3,7 +3,7 @@ | ||
3 | 3 | const { ArrayPrototype } = primordials; |
4 | 4 | |
5 | 5 | const { ModuleWrap, callbackMap } = internalBinding('module_wrap'); |
6 | -const debug = require('util').debuglog('esm'); | |
6 | +const debug = require('internal/util/debuglog').debuglog('esm'); | |
7 | 7 | |
8 | 8 | const createDynamicModule = (exports, url = '', evaluate) => { |
9 | 9 | debug('creating ESM facade for %s with exports: %j', url, exports); |