-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
Modify doc for napi_define_class
to be less C++-specific
#36150
Comments
4 tasks
... or at least de-emphasize the ObjectWrap use case. |
gabrielschulhof
pushed a commit
to gabrielschulhof/node
that referenced
this issue
Nov 18, 2020
Change the documentation for `napi_define_class` in such a way that it mentions wrapping C++ class instances as a possible use for the API, rather than making the assumption that it is the use case for the API. Signed-off-by: Gabriel Schulhof <[email protected]> Fixes: nodejs#36150
3 tasks
codebytere
pushed a commit
that referenced
this issue
Nov 22, 2020
Change the documentation for `napi_define_class` in such a way that it mentions wrapping C++ class instances as a possible use for the API, rather than making the assumption that it is the use case for the API. Signed-off-by: Gabriel Schulhof <[email protected]> Co-authored-by: Rich Trott <[email protected]> Fixes: #36150 PR-URL: #36159 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
BethGriggs
pushed a commit
that referenced
this issue
Dec 10, 2020
Change the documentation for `napi_define_class` in such a way that it mentions wrapping C++ class instances as a possible use for the API, rather than making the assumption that it is the use case for the API. Signed-off-by: Gabriel Schulhof <[email protected]> Co-authored-by: Rich Trott <[email protected]> Fixes: #36150 PR-URL: #36159 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
BethGriggs
pushed a commit
that referenced
this issue
Dec 10, 2020
Change the documentation for `napi_define_class` in such a way that it mentions wrapping C++ class instances as a possible use for the API, rather than making the assumption that it is the use case for the API. Signed-off-by: Gabriel Schulhof <[email protected]> Co-authored-by: Rich Trott <[email protected]> Fixes: #36150 PR-URL: #36159 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
BethGriggs
pushed a commit
that referenced
this issue
Dec 15, 2020
Change the documentation for `napi_define_class` in such a way that it mentions wrapping C++ class instances as a possible use for the API, rather than making the assumption that it is the use case for the API. Signed-off-by: Gabriel Schulhof <[email protected]> Co-authored-by: Rich Trott <[email protected]> Fixes: #36150 PR-URL: #36159 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The doc for
napi_define_class
pretty much assumes an ObjectWrap scenario in that a C++ class will be associated one-to-one with the JS class being defined. This is not necessarily and always the case. We should limit the doc to what can be done in C.The text was updated successfully, but these errors were encountered: