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

5 views
Skip to first unread message

ahwood

unread,
Oct 30, 2012, 9:15:59 AM10/30/12
to v8-...@googlegroups.com, yan...@chromium.org, lpsa...@gmail.com, v8-u...@googlegroups.com
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