Repository navigation
src: add error codes to errors thrown in C++ - #27700
yanivfriedensohn wants to merge 1 commit into
Conversation
656e764 to
dcfd8a9
Compare
|
Adding |
There was a problem hiding this comment.
This seems like an anti-pattern to me. You are effectively moving error handling from Decode() to different places, however, ParseEncoding is now called in multiple different places, too.
There was a problem hiding this comment.
We prefer throwing the JS exception in the binding instead of in nested C++ functions.
Ideally this should be done in JS land, though.
There was a problem hiding this comment.
Moving error handling out is okay as long as the callee still properly checks parameters. Your comment below would mitigate the problem :)
There was a problem hiding this comment.
I moved the error handling to the binding.
96aa81f to
6b94e80
Compare
53ddb82 to
487f8fe
Compare
commented
May 27, 2019
commented
May 28, 2019
commented
Jun 4, 2019
|
@tniessen @joyeecheung pinging to check if the open conversations can be resolved. |
commented
Jun 14, 2019
commented
Jun 27, 2019
commented
Jun 27, 2019
commented
Jun 27, 2019
|
Jenkins is unable to rebase this PR onto master. @yanivfriedensohn can you rebase locally and push to the PR branch? |
a612713 to
1404066
Compare
commented
Jun 28, 2019
|
I squashed the commits to avoid merge conflicts and then rebased onto master. |
commented
Jul 1, 2019
commented
Jul 5, 2019
commented
Jul 13, 2019
|
@Trott the failed tests doesn't seem to be related to the changes of this PR. Can we rerun the CI process? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1404066 to
9b64d06
Compare
commented
Aug 8, 2019
|
Rebased and force-pushed to get rid of the conflict. |
commented
Aug 8, 2019
|
CITGM (this PR): https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/1938/ The above are queued. They will 404 until a worker is available. |
commented
Aug 8, 2019
|
CI is good and I'll be surprised if CITGM turns up anything. Could use a few more reviews, though. @nodejs/tsc |
commented
Aug 9, 2019
|
Landed in a0e2c6d. Thanks for the contribution! π |
This PR follows #20121 and adds error codes to a few errors thrown in C++.
Moreover,
InlineDecoder::Decodehas been refactored to avoid throwing an exception related toStringBytes::IsValidStringinside theDecodemethod.Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes