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`.

PR-URL: #26806
Refs: #26546
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
  • Loading branch information
dnlup authored and targos committed Mar 27, 2019
1 parent 037e3fd commit 4cafd74
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 readFileAsync = promisify(fs.readFile);
Expand Down

0 comments on commit 4cafd74

Please sign in to comment.