Skip to content

Commit

Permalink
module: remove usage of require('util')
Browse files Browse the repository at this point in the history
Use `require('internal/util/debuglog').debuglog` instead of 
`require('util').debuglog` in 
`lib/internal/modules/esm/create_dynamic_module.js`.

Refs: nodejs#26546
  • Loading branch information
dnlup committed Apr 10, 2019
1 parent 41d5666 commit 07117c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/modules/esm/create_dynamic_module.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const { ArrayPrototype } = primordials;

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

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

0 comments on commit 07117c3

Please sign in to comment.