Closed MangelSpec closed 1 year ago
Me, too, encountered this issue.
any news on this?
Hi,
I suspect this issues in related with class inheritance. At the time of the library creation there was no such such ability in pre-ES6 JavaScript, so v8pp uses prototype-based constructor functions.
Sorry, I have no spare time to dig into the issue details, maybe someone could find a way to fix this.
Hello, if exposing a native class and create a derived script one from it, newly created functions are undefined for some reason. Properties, constructors and static methods work however. I created a minimal example to see what I mean:
the loaded index.ts which gets translated to index.js
the index.js which gets loaded
the output result of binding the class with v8pp vs v8
So as you can see, the test.new1 function is somehow missing and undefined from the derived class. I tried to find out what's causing this, but I didn't really see any issue, except that there are 2 function templates used for binding classes in v8pp with func_ and jsfunc. Maybe you can explain why two function templates are used and useful for v8pp?