★ wanayoo — archive 1999 https://github.com/nodejs/node/pull/33570Nouvelle recherche | Portail wanayoo
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

n-api: remove napi_env::CallIntoModuleThrow #33570

Conversation

gabrielschulhof
Copy link
Contributor

@gabrielschulhof gabrielschulhof commented May 26, 2020

Give napi_env::CallIntoModule the thrower used by
CallIntoModuleThrow as its default second argument. That way we do
not need two different methods on napi_env for calling into the
addon.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Re: #33508

Give `napi_env::CallIntoModule` the thrower used by
`CallIntoModuleThrow` as its default second argument. That way we do
not need two different methods on `napi_env` for calling into the
addon.
@gabrielschulhof gabrielschulhof added c++ i18n-api labels May 26, 2020
@nodejs-github-bot nodejs-github-bot added the node-api label May 26, 2020
src/js_native_api_v8.h Outdated Show resolved Hide resolved
@gabrielschulhof
Copy link
Contributor Author

@gabrielschulhof gabrielschulhof commented May 26, 2020

@addaleax I have made the changes you requested.

Copy link
Member

@mhdawson mhdawson left a comment

LGTM

@nodejs-github-bot
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot commented May 26, 2020

@BridgeAR BridgeAR added the author ready label May 26, 2020
@nodejs-github-bot
Copy link
Contributor

@nodejs-github-bot nodejs-github-bot commented May 26, 2020

@gabrielschulhof gabrielschulhof removed the i18n-api label May 27, 2020
@mhdawson
Copy link
Member

@mhdawson mhdawson commented May 27, 2020

CI looks, good will plan to land tomorrow afternoon once 24 hours is up.

gabrielschulhof pushed a commit that referenced this issue May 28, 2020
Give `napi_env::CallIntoModule` the thrower used by
`CallIntoModuleThrow` as its default second argument. That way we do
not need two different methods on `napi_env` for calling into the
addon.

PR-URL: #33570
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
@gabrielschulhof
Copy link
Contributor Author

@gabrielschulhof gabrielschulhof commented May 28, 2020

Landed in 6a1df3b. @mhdawson you're good to go with #33508 👍

@mhdawson
Copy link
Member

@mhdawson mhdawson commented May 28, 2020

@gabrielschulhof Thanks !

gabrielschulhof pushed a commit to gabrielschulhof/node that referenced this issue Jun 9, 2020
Give `napi_env::CallIntoModule` the thrower used by
`CallIntoModuleThrow` as its default second argument. That way we do
not need two different methods on `napi_env` for calling into the
addon.

PR-URL: nodejs#33570
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
codebytere added a commit that referenced this issue Jun 18, 2020
Give `napi_env::CallIntoModule` the thrower used by
`CallIntoModuleThrow` as its default second argument. That way we do
not need two different methods on `napi_env` for calling into the
addon.

PR-URL: #33570
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
@codebytere codebytere mentioned this pull request Jun 28, 2020
codebytere added a commit that referenced this issue Jun 30, 2020
Give `napi_env::CallIntoModule` the thrower used by
`CallIntoModuleThrow` as its default second argument. That way we do
not need two different methods on `napi_env` for calling into the
addon.

PR-URL: #33570
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
codebytere added a commit that referenced this issue Jul 8, 2020
Give `napi_env::CallIntoModule` the thrower used by
`CallIntoModuleThrow` as its default second argument. That way we do
not need two different methods on `napi_env` for calling into the
addon.

PR-URL: #33570
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
@codebytere codebytere mentioned this pull request Jul 13, 2020
@gabrielschulhof gabrielschulhof deleted the consistent-call-into-module branch Jan 28, 2021
@gabrielschulhof gabrielschulhof restored the consistent-call-into-module branch Jan 28, 2021
@gabrielschulhof gabrielschulhof deleted the consistent-call-into-module branch Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready c++ node-api
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

7 participants