-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
util.inspect generates different output in Node minor update #8138
Comments
See:
This is the correct behavior :-) |
@yorkie Oh I see, thanks! |
The tests for |
@addaleax yargs passed citgm we can dig into why |
I’ll try to take a look at that |
Looks like e.g.
It makes sense, then, that this wasn't caught by citgm. |
@bengl Yup, I can confirm that… see yargs/yargs#597 for an attempt to fix this on yargs’ side |
This reverts commit fce4b98. This was a breaking change and should have been marked semver-major. The change that was made altered the output of util.format() and util.inspect(). With how much those are used in the wild, this type of change deserves more justification. Fixes: nodejs#8138 PR-URL: nodejs#8143 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>
* test: fix process mocking in case of exception Fix how the process/io mocking in `test/helpers/utils.js` handles synchronous uncaught exceptions by adding a `finally` handler resetting the mocked state. * test: skip tests which require the window size when run without TTY Skip two tests that would throw an exception when the test output is redirected to a non-TTY (e.g. `npm test | cat`). * test: show more debugging information when integration tests fail * test: maybe fix tests on AppVeyor machines * ci: temporarily set Node v6 version to v6.3.1 See nodejs/node#8138.
This reverts commit fce4b98. This was a breaking change and should have been marked semver-major. The change that was made altered the output of util.format() and util.inspect(). With how much those are used in the wild, this type of change deserves more justification. Fixes: #8138 PR-URL: #8143 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>
util
/utilitiesSince the update from Node.js v6.3 to Node.js v6.4,
util.inspect
generates a different output for the same object. This broke our tests and I'm not 100% sure if this is intended to happen.Take this object:
Then, running
util.inspect
on it:Node v6.3:
Node v6.4:
Thanks
The text was updated successfully, but these errors were encountered: