Skip to content

process: remove usage of require('util') in per_thread.js - #26817

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

process: remove usage of require('util') in per_thread.js#26817
dnlup wants to merge 1 commit into
nodejs:masterfrom
dnlup:util_process

Conversation

@dnlup

Copy link
Copy Markdown
Contributor

Use require('internal/util/inspect').format instead of
require('util').format.

Refs: #26546

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

Use `require('internal/util/inspect').format` instead of `require('util').format`.
Refs: nodejs#26546
@nodejs-github-botnodejs-github-bot added the process Issues and PRs related to the process subsystem. label Mar 20, 2019
}
} = require('internal/errors');
const util = require('util');
const format = require('internal/util/inspect').format;

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

@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/inspect').format` instead of
`require('util').format`.
PR-URL: nodejs#26817
Refs: nodejs#26546
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
@BridgeAR

Copy link
Copy Markdown
Member

Landed in 4a07a62 🎉

targos pushed a commit to targos/node that referenced this pull request Mar 27, 2019
Use `require('internal/util/inspect').format` instead of
`require('util').format`.
PR-URL: nodejs#26817
Refs: nodejs#26546
Reviewed-By: Michaël Zasso <targos@protonmail.com>
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/inspect').format` instead of
`require('util').format`.
PR-URL: #26817
Refs: #26546
Reviewed-By: Michaël Zasso <targos@protonmail.com>
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_process branch January 10, 2020 13:43
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.processIssues and PRs related to the process subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@dnlup@BridgeAR@jasnell@targos@nodejs-github-bot