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/module_map.js`.

Refs: #26546

PR-URL: #26805
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
  • Loading branch information
dnlup authored and ZYSzys committed Mar 24, 2019
1 parent a894514 commit 25b78c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/modules/esm/module_map.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const ModuleJob = require('internal/modules/esm/module_job');
const {
SafeMap
} = primordials;
const debug = require('util').debuglog('esm');
const debug = require('internal/util/debuglog').debuglog('esm');
const { ERR_INVALID_ARG_TYPE } = require('internal/errors').codes;
const { validateString } = require('internal/validators');

Expand Down

0 comments on commit 25b78c0

Please sign in to comment.