People often use classes with inheritance when using C++.
But there is no valid way if we want to map the inheritance relationship of C++ classes to JavaScript when using Node N-API.
There was a pull request #20267 that the committer wanted to add this feature, but I don't know why it was turned off.
This problem has also been mentioned in the node-addon-api, but node-addon-api needs the support of Node N-API to provide this feature.
Related issues:
nodejs/node-addon-api#229
nodejs/node-addon-api#246
nodejs/node-addon-api#956
Hope this helps anyone whole might be stuck!
People often use classes with inheritance when using C++.
But there is no valid way if we want to map the inheritance relationship of C++ classes to JavaScript when using Node N-API.
There was a pull request #20267 that the committer wanted to add this feature, but I don't know why it was turned off.
This problem has also been mentioned in the
node-addon-api, butnode-addon-apineeds the support of Node N-API to provide this feature.Related issues:
nodejs/node-addon-api#229
nodejs/node-addon-api#246
nodejs/node-addon-api#956
Hope this helps anyone whole might be stuck!