Skip to content

module: remove usage of require('util') in esm/translators.js - #26806

Closed
dnlup wants to merge 1 commit into
nodejs:masterfrom
dnlup:util_internal_modules_esm_translators
Closed

module: remove usage of require('util') in esm/translators.js#26806
dnlup wants to merge 1 commit into
nodejs:masterfrom
dnlup:util_internal_modules_esm_translators

Conversation

@dnlup

Copy link
Copy Markdown
Contributor

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.

Refs: #26546

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

@dnlup
dnlupforce-pushed the util_internal_modules_esm_translators branch from 28508c7 to edfa70fCompareMarch 20, 2019 13:26
@dnlupdnlup changed the title module: remove usage of require('util')module: remove usage of require('util') in esm/translators.jsMar 20, 2019

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
constdebuglog=require('internal/util/debuglog').debuglog;
const{debuglog }=require('internal/util/debuglog');

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
constpromisify=require('internal/util').promisify;
const{promisify }=require('internal/util');

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`.
Refs: nodejs#26546
@dnlup
dnlupforce-pushed the util_internal_modules_esm_translators branch from edfa70f to cb61931CompareMarch 21, 2019 15:39
@BridgeARBridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Mar 22, 2019
@BridgeAR

Copy link
Copy Markdown
Member

@BridgeAR

Copy link
Copy Markdown
Member

BridgeAR pushed a commit to BridgeAR/node that referenced this pull request Mar 24, 2019
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>
@BridgeAR

Copy link
Copy Markdown
Member

Landed in 0f2bf72 🎉

targos pushed a commit to targos/node that referenced this pull request Mar 27, 2019
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>
targos pushed a commit that referenced this pull request Mar 27, 2019
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>
@targostargos mentioned this pull request Mar 27, 2019
@dnlup
dnlup deleted the util_internal_modules_esm_translators branch January 10, 2020 13:44
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@dnlup@BridgeAR@jasnell