Hy
First of all, great work! I'm migrating a Nan based native addon to node-addon-api, and so far, the code is much cleaner than before. I do no longer need to copy past fragments as I now can remember the signatures and requires far less boilerplate code.
Right now I'm migrating my LLVM Wrapper for Node.js to napi and face the issue that I don't see a way to implement a class hierarchy using Napi::ObjectWrap. I need class hierarchies to correctly model the LLVM Value API.
Inheritance with the v8 API can be achieved by using the Inherit Function of the FunctionTemplate.
Is this use case yet supported or are there ideas how to implement it in node-addon-api?
Cheers,
Micha
Hy
First of all, great work! I'm migrating a Nan based native addon to node-addon-api, and so far, the code is much cleaner than before. I do no longer need to copy past fragments as I now can remember the signatures and requires far less boilerplate code.
Right now I'm migrating my LLVM Wrapper for Node.js to napi and face the issue that I don't see a way to implement a class hierarchy using
Napi::ObjectWrap. I need class hierarchies to correctly model the LLVM Value API.Inheritance with the
v8API can be achieved by using theInheritFunction of theFunctionTemplate.Is this use case yet supported or are there ideas how to implement it in node-addon-api?
Cheers,
Micha