-
Notifications
You must be signed in to change notification settings - Fork 461
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
Migration from NAN to object_wrap / determine invoked property name #1114
Comments
This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made. |
Added to list of issues to discussion in next node-api team meeting |
@vmoroz will take a look this week. |
We talked about this is in the Node-API team meeting today and we don't have any easy way to do this today. @vmoroz will think a bit more about it. |
My understanding of the issue is that NAN uses the V8 ObjectTemplate that uses Proxy-like methods for Object's getters and setters to access all object properties. In Node-API we use a different approach: we define a JavaScript class as a |
In today's Node API meeting, we discussed the possibility of using the @vmoroz will take a look and attempt to create some unit tests that does this and provide feedback, determining if we need to enhance the Node API for anything. |
We used a very similar approach before to implement JSI on top of Node-API. |
I had started to work on the unit test. |
This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made. |
Just leaving open, as @vmoroz is planning to add a C++ version of the example. The C based one he added has landed. |
This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made. |
This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made. |
This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made. |
This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made. |
Reopening the issue. We still want to find a good solution here. |
This is a usage / migration from NAN question. With NAN I used the following to determine the invoked property name:
This helped me to reduce C++ boilerplate code for classes with many properties because I did not have to declare and define every single setter and getter method in C++.
Is this still possible?
The text was updated successfully, but these errors were encountered: