On Fri, Dec 16, 2011 at 9:13 AM, Oliver Hunt <oli...@apple.com> wrote:

>
> This looks like you're storing the JSContextRef you receive when your
> callback is called.  That's incorrect as a given JSContextRef is only
> guaranteed to be valid within the callback.  All your functions should be
> from the same initial JSGlobalContextRef you created when initialising your
> environment, and you should just be using that GlobalContext rather than
> any per instance context.
>

Excellent! the globalContext worked just fine :)


> You should also be protecting the function with JSValueProtect.
>

Ok, thanks. I'll keep that piece then.


> Hopefully this helps.
>

It sure did.
Thanks!
_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to