Skip to content

Node-API support inheritance of class #38038

@ApsarasX

Description

@ApsarasX

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.node-apiIssues and PRs related to the Node-API.stale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions