Skip to content

Commit 4cafd74

Browse files
dnluptargos
authored andcommitted
module: remove usage of require('util') in esm/translators.js
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 <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 037e3fd commit 4cafd74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/internal/modules/esm/translators.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ const {
1919
StringPrototype
2020
} = primordials;
2121
const { URL } = require('url');
22-
const { debuglog, promisify } = require('util');
22+
const { debuglog } = require('internal/util/debuglog');
23+
const { promisify } = require('internal/util');
2324
const esmLoader = require('internal/process/esm_loader');
2425

2526
const readFileAsync = promisify(fs.readFile);

0 commit comments

Comments
 (0)