wenbin wang
unread,Dec 7, 2009, 9:23:39 PM12/7/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-gadgets-for-linux-user
Thanks for your help.
I have a new question:
JSObjectRef CompileFunction(JSScriptContext *ctx, const char *script,
const char
*filename, int lineno,
JSValueRef
*exceptio)
if (!script)
return NULL;
std::string massaged_script = MassageJScript(script, false,
filename, lineno);
JSStringRef js_script =
JSStringCreateWithUTF8CString(massaged_script.c_str());
JSStringRef src_url =
(filename && *filename) ? JSStringCreateWithUTF8CString
(filename) : NULL;
JSObjectRef result = JSObjectMakeFunction(
ctx->GetContext(), NULL, 0, NULL, js_script, src_url, lineno,
exception);
I thought massager is a pre-compiler, but
when I delete the MassageJScript() and use script instead of
massaged_script.c_str(), everything is OK.
So what does MassageJscript do exactly?
Thanks very much.