You'd install the FunctionTemplate on the instance_tmpl as a getter of an
accessor property

hth
-jochen

On Fri, Feb 5, 2016 at 5:35 AM Zac Hansen <xax...@gmail.com> wrote:

>
>
> On Thursday, February 4, 2016 at 12:44:39 PM UTC-8, vmj...@extrahop.com
> wrote:
>>
>> This recent commit 6a118774
>> <https://github.com/v8/v8/commit/6a118774244d087b5979e9291d628a994f21d59d> 
>> breaks
>> the ability to set functions as data properties on templates (ie.
>> Template::Set will assert on a value argument that is a JSReceiver). To be
>> more explicit, the following code no longer works:
>>
>> fn = FunctionTemplate::New(isolate, <some c++ binding>)->GetFunction();
>> fn->SetName(fn_name);
>> instance_tmpl->Set(fn_name, fn);
>>
>> What is the appropriate mechanism to achieve this same functionality now?
>>
> --
> --
> 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.
>

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