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: nodejs#26806
Refs: nodejs#26546
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
dnlup authored and targos committed Mar 27, 2019
1 parent 4cef6c2 commit 8303dd1
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 8303dd1

Please sign in to comment.