On Tue, Feb 16, 2016 at 3:40 PM, Zac Hansen <[email protected]> wrote:
> I'm feeling rather silly, but how do you get the function template into the
> callback to check against?  It's not a v8::Value, so you can't pass it in as
> data.
>
> Do I put a Global<FunctionTemplate> on the heap and pass it in as an
> External in the data field of the callback?

Yes, that's one possible solution.

> You have to register the callback and data for it while creating the
> callback.

Are you referring to weak persistent handles?

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

Reply via email to