Skip to content

Inheritance not yet implemented #1

@ApsarasX

Description

@ApsarasX

Due to the limitation of node-addon-api, this project has not implemented inheritance yet, so calling the method of superclass from subclass object will report an error, just like

TypeError: Illegal invocation

Related issues are discussed in the following two issues.

node-addon-api#229
node-addon-api#956

In order to temporarily solve this problem, I reexposed the superclass method that needs to be used on the subclass.

It is expected that node-addon-api can really support inheritance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions