-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
lib: remove usage of require('util') #26779
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
Remove the usage of `require('util').inspect`. Refs: nodejs#26546
@@ -327,7 +327,7 @@ class TextEncoder { | |||
}); | |||
obj.encoding = this.encoding; | |||
// Lazy to avoid circular dependency | |||
return require('util').inspect(obj, opts); | |||
return require('internal/util/inspect').inspect(obj, opts); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it was possible to change
Line 21 in 1329d0a
customInspectSymbol: inspect |
to
customInspectSymbol: <something else>
I could put require('internal/util/inspect').inspect
together with all the top level imports.
@@ -530,7 +530,7 @@ function makeTextDecoderJS() { | |||
obj[kHandle] = this[kHandle]; | |||
} | |||
// Lazy to avoid circular dependency | |||
return require('util').inspect(obj, opts); | |||
return require('internal/util/inspect').inspect(obj, opts); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the usage of `require('util').inspect`. PR-URL: nodejs#26779 Refs: nodejs#26546 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Landed in e5383ad 🎉 |
Remove the usage of `require('util').inspect`. PR-URL: nodejs#26779 Refs: nodejs#26546 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Remove the usage of
require('util').inspect
.Refs: #26546
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes