Skip to content

Commit d6317d0

Browse files
dnlupBridgeAR
authored andcommitted
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: #26803 Refs: #26546 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Yongsheng Zhang <[email protected]>
1 parent c9fece3 commit d6317d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/modules/esm/create_dynamic_module.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const { ArrayPrototype } = primordials;
44

55
const { ModuleWrap, callbackMap } = internalBinding('module_wrap');
6-
const debug = require('util').debuglog('esm');
6+
const debug = require('internal/util/debuglog').debuglog('esm');
77

88
const createDynamicModule = (exports, url = '', evaluate) => {
99
debug('creating ESM facade for %s with exports: %j', url, exports);

0 commit comments

Comments
 (0)