Skip to content
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

[v8.x] n-api: add code parameter to error helpers #14453

Closed

Conversation

addaleax
Copy link
Member

@addaleax addaleax commented Jul 24, 2017

Backporting #13988 (the only conflict was in the internal errors list) + re-ordering the internal errors list alphabetically for future backports.

mhdawson and others added 2 commits July 24, 2017 18:45
In support of the effort to add error codes to all errors
generated by Node.js, add an optional code parameter to the
helper functions used to throw/create errors in N-API.

PR-URL: nodejs#13988
Fixes: nodejs#13933
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. v8.x labels Jul 24, 2017
@addaleax
Copy link
Member Author

addaleax pushed a commit to addaleax/node that referenced this pull request Jul 27, 2017
In support of the effort to add error codes to all errors
generated by Node.js, add an optional code parameter to the
helper functions used to throw/create errors in N-API.

Backport-PR-URL: nodejs#14453
Backport-Reviewed-By: James M Snell <jasnell@gmail.com>

PR-URL: nodejs#13988
Fixes: nodejs#13933
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
addaleax added a commit to addaleax/node that referenced this pull request Jul 27, 2017
To make backporting easier.

PR-URL: nodejs#14453
Reviewed-By: James M Snell <jasnell@gmail.com>
@addaleax
Copy link
Member Author

Landed in f2efdc8, 142ce5c

@addaleax addaleax closed this Jul 27, 2017
@addaleax addaleax deleted the backport-napi-errors-codes branch July 27, 2017 21:24
@addaleax addaleax mentioned this pull request Aug 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants