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.
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 likeRelated 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-apican really support inheritance.