Re: Looking for a sample of plugin that can be dynamic loaded and called by javascript

16 views
Skip to first unread message

Yang Guo

unread,
Oct 30, 2012, 10:24:17 AM10/30/12
to ahwood, v8-...@googlegroups.com, lpsa...@gmail.com, v8-u...@googlegroups.com
Hi

You could take a look at V8's extensions in src/extensions/. Or you could take a look what the node.js guys put together.

Yang


On Tue, Oct 30, 2012 at 2:20 PM, ahwood <ww...@qq.com> wrote:
I wish to do the thing below:
Create a plugin by C++,such as:
myplugin_by_cpp

Then to load it  in my main app which V8 embeded, and access the function of myplugin_by_cpp in javascript:
var myplugin=require("myplugin_by_cpp");
var result=myplugin.run();

I wonder if there's a sample about that?

Reply all
Reply to author
Forward
0 new messages