you might want to try building your objects not from the InstanceTemplate, but from the Interface template itself in Wrap as:
functionTemplate->GetFunction()->NewInstance() El viernes, 2 de febrero de 2018, 12:32:21 (UTC+1), Cvetan Stefanovski escribió: > > Hello, > > I am using V8 to expose a C++ API to JavaScript, and I have a use-case > where one would need to have a JavaScript class that inherit from a C++ > class. I've seen from V8 test code how they test the inheritance thing > there, but I couldn't find anything that was specific to my case. I've > exhausted all resources that I could find on Google on this issue so I > figured someone might help here. > > I've attached a simplified code snippet for my case. It contains the class > that I expose and the way I use it in JavaScript, so maybe someone can spot > what I am missing. > > Thanks in advance. > > -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.