Thanks, Ben!

I was following the example in test-api.cc and it seemed to have worked for 
me.  I just wanted to make sure that I understand the difference between 
FunctionTemplate.InstanceTemplate() and 
FunctionTemplate.PrototypeTemplate():

In order for something to be inherited by the children, it needs to be set 
on prototype template on the parent, and the child needs to create an 
instance from the instance template.

Internal field count needs to be set on prototype template for it to take 
effect on the instances created on instance template.  Is that right?

Jane

On Tuesday, June 10, 2014 2:59:35 AM UTC-7, Ben Noordhuis wrote:
>
> On Mon, Jun 9, 2014 at 10:54 PM, Jane Chen <jxch...@gmail.com 
> <javascript:>> wrote: 
> > It seems to me that FunctionTemplate::Inherit does not allow multiple 
> > inheritance, i.e., there is only one partent template and the last one 
> wins. 
> > Is that right? 
> > 
> > Thanks! 
>
> That's correct, it's standard JS prototypal inheritance. 
>

-- 
-- 
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.

Reply via email to