Skip to content

module: remove usage of require('util') cjs/loader.js - #26802

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

module: remove usage of require('util') cjs/loader.js#26802
dnlup wants to merge 1 commit into
nodejs:masterfrom
dnlup:util_internal_modules_cjs_loader

Conversation

@dnlup

Copy link
Copy Markdown
Contributor

Use require('internal/util').deprecate instead of
require('util').deprecate in lib/internal/modules/cjs/loader.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_cjs_loader branch from c185339 to eb63e45CompareMarch 20, 2019 13:29
@dnlupdnlup changed the title module: remove usage of require('util')module: remove usage of require('util') cjs/loader.jsMar 20, 2019
Comment threadlib/internal/modules/cjs/loader.js Outdated

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
constdeprecate=require('internal/util').deprecate;
const{deprecate }=require('internal/util');

Use `require('internal/util').deprecate` instead of
`require('util').deprecate` in `lib/internal/modules/cjs/loader.js`.
Refs: nodejs#26546
@dnlup
dnlupforce-pushed the util_internal_modules_cjs_loader branch from eb63e45 to 88c969bCompareMarch 21, 2019 15:46
@BridgeAR

Copy link
Copy Markdown
Member

@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 pushed a commit to BridgeAR/node that referenced this pull request Mar 24, 2019
Use `require('internal/util').deprecate` instead of
`require('util').deprecate` in `lib/internal/modules/cjs/loader.js`.
PR-URL: nodejs#26802
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 005528a 🎉

I moved the argument in the same line as the other arguments while landing, now that the line is not above 80 characters anymore.

targos pushed a commit to targos/node that referenced this pull request Mar 27, 2019
Use `require('internal/util').deprecate` instead of
`require('util').deprecate` in `lib/internal/modules/cjs/loader.js`.
PR-URL: nodejs#26802
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').deprecate` instead of
`require('util').deprecate` in `lib/internal/modules/cjs/loader.js`.
PR-URL: #26802
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_cjs_loader branch January 10, 2020 13:45
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