Hello..
I've been writing a custom module for Gears over the past few weeks..
and I've run into a small problem. I'd like to access an anonymous
object that a javascript function returns back to me after calling
InvokeCallback. So my code looks something like:
JsRootedToken *token;
runner->InvokeCallback(jsCallback, argc, argv, &token);
What'd like to be able to do is something like:
JsObject object;
if (JsTokenToObject_NoCoerce(token->token(), token->context(),
&object)) {
// process attributes of object here
}
Am I missing a way to convert a JsToken to the JsObject type defined
in js_types.h? I haven't been able to find it.. and it seems accessing
JsToken directly would be a daunting task given it's platform/browser
specific typedef/attributes