Uh oh!
There was an error while loading. Please reload this page.
assert: improve loose assertion message - #22155
Conversation
So far the error message from a loose assertion is not always very informative and could be misleading. This is fixed by: * showing more from the actual error message * having a better error description * not using custom inspection * inspecting a higher depth * inspecting the full array instead of up to 100 entries
BridgeAR
commented
Aug 6, 2018
mcollina
commented
Aug 8, 2018
Code LGTM. But isn't Is this something we need? |
BridgeAR
commented
Aug 9, 2018
@mcollina it is doc deprecated but the problem is that it is still used relatively often. It is also not likely or currently intended to change the doc deprecation to a runtime deprecation. This is mainly a hot fix for some of the issues that the old version has for the case that people still use that. |
So far the error message from a loose assertion is not always very informative and could be misleading. This is fixed by: * showing more from the actual error message * having a better error description * not using custom inspection * inspecting a higher depth * inspecting the full array instead of up to 100 entries PR-URL: nodejs#22155 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
BridgeAR
commented
Aug 9, 2018
Landed in 1d859ef |
rvagg
commented
Aug 13, 2018
@BridgeAR if this isn't semver-major (is it?) would you mind backporting to v10.x-staging please? There's a bit too much churn in there for this to apply nicely. |
targos
commented
Aug 19, 2018
Ping @BridgeAR |
1 similar comment
targos
commented
Aug 29, 2018
Ping @BridgeAR |
targos
commented
Sep 2, 2018
Ping |
So far the error message from a loose assertion is not always very informative and could be misleading. This is fixed by: * showing more from the actual error message * having a better error description * not using custom inspection * inspecting a higher depth * inspecting the full array instead of up to 100 entries PR-URL: nodejs#22155 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
BridgeAR
commented
Oct 2, 2018
This relies on a semver-major change and should not be backported. |
So far the error message from a loose assertion is not always very
informative and could be misleading. This is fixed by:
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes