Chrome uses idl to install its C++ to js interfaces:
https://www.chromium.org/developers/web-idl-interfaces

On Tue, Apr 5, 2016, 1:29 AM Deepak Subramanian <[email protected]>
wrote:

> Hi I had defined some custom functions (JS->C++) in d8 when I was testing
> it out.
>
> I had added another line in Shell::CreateGlobalTemplate (d8.cc)
> global_template->Set(String::NewFromUtf8(isolate, "customFunction"),
>                        FunctionTemplate::New(isolate, MYCustomFunction));
>
> Ofcouse it worked quite well. :) Now I need to take this to chrome and I
> want to define this customFunction as a global that can be called from
> console (just like eval or print or console.log). Any pointers would be
> greatly appreciated.
>
> Thanks a ton.
>
> Deepak Subramanian
>
> --
> --
> 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.
>

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