JSString* jsd_GetScriptFunctionId(JSDContext* jsdc, JSDScript *jsdscript) { JSString* str; JSFunction *fun = jsd_GetJSFunction(jsdc, jsdscript); if( ! fun ) return NULL; str = JS_GetFunctionId(fun); /* For compatibility we return "anonymous", not an empty string here. */ return str ? str : JS_GetAnonymousString(jsdc->jsrt); }
JSD_GetJSFunction(JSDContext* jsdc, JSDScript *script) { return jsd_GetJSFunction (jsdc, script); }