-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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
src: assign error codes to more errors thrown in C++ #20121
Closed
Closed
Commits on Apr 18, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 034ddaf - Browse repository at this point
Copy the full SHA 034ddafView commit details -
src: migrate ERR_INDEX_OUT_OF_RANGE in C++
This patch migrates the "Index out of range" errors in C++ to errors with the code `ERR_INDEX_OUT_OF_RANGE` which have equivalents in JavaScript.
Configuration menu - View commit details
-
Copy full SHA for 495ba98 - Browse repository at this point
Copy the full SHA 495ba98View commit details -
src: throw ERR_INVALID_ARG_TYPE in C++ argument checks
- Moves THROW_AND_RETURN_IF_NOT_BUFFER and THROW_AND_RETURN_IF_NOT_STRING from node_crypto.cc to node_errors.h so it can be reused. - Move THROW_AND_RETURN_UNLESS_BUFFER in util.h to node_buffer.cc and call THROW_AND_RETURN_IF_NOT_BUFFER there. The only other reference to THROW_AND_RETURN_UNLESS_BUFFER in node_i18n.cc can be safely replaced by an assertion since the argument will be checked in JS land. - Migrate ERR_INVALID_ARG_TYPE errors in C++. We can move the checks to JS land if possible later without having to go semver-major.
Configuration menu - View commit details
-
Copy full SHA for 0a9f327 - Browse repository at this point
Copy the full SHA 0a9f327View commit details -
Configuration menu - View commit details
-
Copy full SHA for 185c60d - Browse repository at this point
Copy the full SHA 185c60dView commit details -
Configuration menu - View commit details
-
Copy full SHA for b2e7ff3 - Browse repository at this point
Copy the full SHA b2e7ff3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 46935ab - Browse repository at this point
Copy the full SHA 46935abView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b4364e - Browse repository at this point
Copy the full SHA 0b4364eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 184e8ea - Browse repository at this point
Copy the full SHA 184e8eaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 834764e - Browse repository at this point
Copy the full SHA 834764eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 60a0c36 - Browse repository at this point
Copy the full SHA 60a0c36View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.