On Tue, Nov 8, 2016 at 5:49 AM, George Marques <[email protected]> wrote: > Solved my problem. I had to use point_constructor->InstanceTemplate() only > to set the internal field count. To set the methods I need to use > point_constructor->PrototypeTemplate(). > > Still struggling a bit to understand why it has to be that way. V8 internals > is kind of a mystery.
It sounds like you figured it out but just in case: in your example the C++ code is overriding the JS method. The prototype template is the base class (insofar that concept applies to JS) whereas the instance template is the derived class. -- -- v8-users mailing list [email protected] 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
