Thanks Boddy and Jonas for the solution! Good to learn! Btw, That'd be nicer if we could add some comments for the following 2 utilities in the header:
static JSContext *GetCurrentJSContext(); static JSContext *GetSafeJSContext(); It's easy to misunderstand to use them because the naming would sound exactly the purpose we want (actually, it doesn't) and is ambiguous with the AutoJSContext. Thanks, Gene _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
