module: remove usage of require('util') in esm/translators.js
· nodejs/node@4cafd74 (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- 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
Lines changed: 2 additions & 1 deletion
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); |