I was writing a dll to be called by js-ctypes, but I need the JsContext of the caller JS environemt

2015-12-27 Thread Yonggang Luo
And after investigation, I found it's seems not possible to do it, is there any way to do that? Or we need to expose a API to do that. ___ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform

Re: I was writing a dll to be called by js-ctypes, but I need the JsContext of the caller JS environemt

2015-12-27 Thread Yonggang Luo
New question, what's the differences between GetCurrentJSContext & GetSafeJSContext in nsIXPConnect On Mon, Dec 28, 2015 at 1:16 AM, Yonggang Luo wrote: > And after investigation, I found it's seems not possible to do it, is > there any way to do that? Or we need to