[webkit-help] Exposing C++ objects to JavaScript through JavaScriptCore

Brent Fulgham bfulgham at gmail.com
Fri Jun 22 23:10:13 PDT 2012

Hi Rippel,

I wrote an example application under Windows that uses the JavaScriptCore API to execute arbitrary JavaScript code. (See https://github.com/bfulgham/CallJS)

It's really not very complicated, and is also illustrated in the Inspector code in the WebKit archive. E-mail if you have any problems.


Sent from my iPad

On Jun 22, 2012, at 9:41 AM, rippel tippel <rippeltippel at gmail.com> wrote:

> Hi,
> I need to expose some C++ classes/methods to JavaScript using
> JavaScriptCore, so that they can be instantiated/called by a
> JavaScript application.
> I found plenty of documentation and examples regarding v8 and Node.js,
> but not much about JavaScriptCore API (apart from some old or
> incomplete docs, e.g. [1], [2], and [3]).
> Can anyone point me to some documentation and/or examples, and/or
> outline the basic steps for doing it?m
> Kind regards,
> Rippel
> [1] http://article.gmane.org/gmane.os.opendarwin.webkit.user/1067/match=javascriptcore
> [2] http://developer.apple.com/library/mac/#documentation/Carbon/Reference/WebKit_JavaScriptCore_Ref/
> [3] http://developer.apple.com/library/mac/#samplecode/JSPong/Introduction/Intro.html
> _______________________________________________
> webkit-help mailing list
> webkit-help at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-help/attachments/20120622/0c20de2f/attachment.html>

More information about the webkit-help mailing list