Why?
Because I can't find a complete example of how to do it any other way...
I need more then a two line explanation.  The lack of quality documentation 
and straight forward examples is outstanding.

All the examples use ObjectTemplates.  The embedders guide does too.

Also the object I'm creating has many other methods too (not just a 
constructor).
I create an object template, give it a SetCallAsFunctionHandler() (so I can 
create it in C++ land) then add a whole bunch of other methods using Set() 
then I Set() that object template into another ObjectTemplate which used by 
the Context::New() when setting up the global.

That's my understanding of how it is supposed to work.

Ben,  I this post you were doing HasInstance() with a hack 
involving SetPointerInInternalField()
https://groups.google.com/forum/#!topic/nodejs/PA3cNIZuFWU

What that before you knew better?
Thanks for the help

-- 
-- 
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/groups/opt_out.


Reply via email to