How to get JSContextRef from JavaScriptCore

103 views
Skip to first unread message

nikhil

unread,
Dec 7, 2009, 11:55:49 PM12/7/09
to JSCocoa
Hi All,

Its been little more than a month I have been working on webkit-1.0. I
have been using the exposed files like [JSVAlueRef.h, JSContextRef.h,
JSStringRef.h n ] so on. With this exposed c function I could create a
JSObject and could insert it in to the JSFrame work.

I need to understand while parsing the script how does the JSContext
is created. How do we get it from the JSDOMWindow ? Any document to
understand the JSDOM model?

I'll be glad to receive your thoughts on this.

Thanks
~Nikhil

Patrick Geiller

unread,
Dec 8, 2009, 10:46:22 AM12/8/09
to jsc...@googlegroups.com
Hi Nikhil,

> I need to understand while parsing the script how does the JSContext
> is created. How do we get it from the JSDOMWindow ? Any document to
> understand the JSDOM model?

Ask your question on one of WebKit's mailing list http://webkit.org/contact.html

JSCocoa only uses JavascriptCore's public API, not internal stuff like JSDOMWindow.

-Patrick
Reply all
Reply to author
Forward
0 new messages