-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
make use of util.inspect.custom
#8738
make use of util.inspect.custom
#8738
Conversation
For maintainers only:
|
This test gets @sokra Could you tell me the version of Node in this log? #8738 (comment) |
node 10. starting with node 11 In See here: https://nodejs.org/docs/latest/api/util.html#util_util_inspect_custom |
@sokra Thank you for the information! Updated the code. PTAL 🙇 |
nodejs.util.inspect.custom
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.
Seem like the CI didn't catch that, because unittest only run on node.js 10, but the node.js documentation states that Symbol.for('nodejs.util.inspect.custom')
was added with node 10.12.0, while util.inspect.custom
was added in node 6.
https://nodejs.org/docs/latest/api/util.html#util_util_inspect_custom in History
v10.12.0 | This is now defined as a shared symbol.
lib/WebpackError.js
Outdated
@@ -4,6 +4,8 @@ | |||
*/ | |||
"use strict"; | |||
|
|||
const inspect = Symbol.for("nodejs.util.inspect.custom"); |
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.
const inspect = Symbol.for("nodejs.util.inspect.custom"); | |
const inspect = require("util").inspect.custom; |
Ah, I see. Updated:) |
Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon. |
Thanks |
nodejs.util.inspect.custom
util.inspect.custom
What kind of change does this PR introduce?
Currently, WebpackError.unittest.js test has failed.
Did you add tests for your changes?
no
Does this PR introduce a breaking change?
no
What needs to be documented once your changes are merged?