module: remove usage of require('util') in esm/translators.js
· nodejs/node@4cafd74 (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit 4cafd74
authored and
committed
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: #26806Refs: #26546Reviewed-By: James M Snell jasnell@gmail.com Reviewed-By: Ruben Bridgewater ruben@bridgewater.de
File tree
1 file changed
lines changed
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -19,7 +19,8 @@ const { | ||
19 | 19 | StringPrototype |
20 | 20 | } = primordials; |
21 | 21 | const { URL } = require('url'); |
22 | -const { debuglog, promisify } = require('util'); | |
22 | +const { debuglog } = require('internal/util/debuglog'); | |
23 | +const { promisify } = require('internal/util'); | |
23 | 24 | const esmLoader = require('internal/process/esm_loader'); |
24 | 25 | |
25 | 26 | const readFileAsync = promisify(fs.readFile); |