Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net: remove usage of require('util') #26920

Closed
wants to merge 1 commit into from

Conversation

dnlup
Copy link
Contributor

@dnlup dnlup commented Mar 26, 2019

Use require('internal/util/inspect').inspect,
require('internal/util/debuglog').debuglog,
require('internal/util').deprecate and Object.setPrototypeOf instead
of require('util').
Fix test in test/parallel/test-net-access-byteswritten.js to do not
check the super_ property that was set when using
require('util').inherits.

Refs: #26546
Refs: #26896

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

@nodejs-github-bot nodejs-github-bot added the net Issues and PRs related to the net subsystem. label Mar 26, 2019
@dnlup dnlup mentioned this pull request Mar 26, 2019
2 tasks
lib/net.js Outdated Show resolved Hide resolved
lib/net.js Outdated Show resolved Hide resolved
Use `require('internal/util/inspect').inspect`, 
`require('internal/util/debuglog').debuglog`, 
`require('internal/util').deprecate` and `Object.setPrototypeOf` instead 
of `require('util')`.
Fix test in `test/parallel/test-net-access-byteswritten.js` to do not 
check the `super_` property that was set when using 
`require('util').inherits`.

Refs: nodejs#26546
Refs: nodejs#26896
@dnlup dnlup force-pushed the util_net_test_fix branch from 2629c82 to 1d643e5 Compare March 26, 2019 11:34
@nodejs-github-bot
Copy link
Collaborator

@BridgeAR BridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Mar 26, 2019
@targos
Copy link
Member

targos commented Mar 30, 2019

Landed in f0b3855

@targos targos closed this Mar 30, 2019
targos pushed a commit that referenced this pull request Mar 30, 2019
Use `require('internal/util/inspect').inspect`,
`require('internal/util/debuglog').debuglog`,
`require('internal/util').deprecate` and `Object.setPrototypeOf` instead
of `require('util')`.
Fix test in `test/parallel/test-net-access-byteswritten.js` to do not
check the `super_` property that was set when using
`require('util').inherits`.

Refs: #26546
Refs: #26896

PR-URL: #26920
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
@targos
Copy link
Member

targos commented Mar 30, 2019

I add the backport-requested label because the Object.setPrototypeOf part shouldn't land on v11.x.

BethGriggs pushed a commit that referenced this pull request Apr 5, 2019
Use `require('internal/util/inspect').inspect`,
`require('internal/util/debuglog').debuglog`,
`require('internal/util').deprecate` and `Object.setPrototypeOf` instead
of `require('util')`.
Fix test in `test/parallel/test-net-access-byteswritten.js` to do not
check the `super_` property that was set when using
`require('util').inherits`.

Refs: #26546
Refs: #26896

PR-URL: #26920
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
@dnlup dnlup deleted the util_net_test_fix branch January 10, 2020 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. net Issues and PRs related to the net subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants