Skip to content

Commit

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

Refs: #26546
  • Loading branch information
dnlup committed Mar 21, 2019
1 parent 4306300 commit cb61931
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/internal/modules/esm/translators.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ const {
StringPrototype
} = primordials;
const { URL } = require('url');
const { debuglog, promisify } = require('util');
const { debuglog } = require('internal/util/debuglog');
const { promisify } = require('internal/util');
const esmLoader = require('internal/process/esm_loader');
const {
ERR_UNKNOWN_BUILTIN_MODULE
Expand Down

0 comments on commit cb61931

Please sign in to comment.