mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 420807 xpconnect should not use fun->atom r=dbradley a=brendan
This commit is contained in:
parent
b9eca15a36
commit
64fa3a079b
@ -851,10 +851,11 @@ nsXPConnect::Traverse(void *p, nsCycleCollectionTraversalCallback &cb)
|
|||||||
else if(clazz == &js_FunctionClass)
|
else if(clazz == &js_FunctionClass)
|
||||||
{
|
{
|
||||||
JSFunction* fun = (JSFunction*) xpc_GetJSPrivate(obj);
|
JSFunction* fun = (JSFunction*) xpc_GetJSPrivate(obj);
|
||||||
if(fun->atom && ATOM_IS_STRING(fun->atom))
|
JSString* str = JS_GetFunctionId(fun);
|
||||||
|
if(str)
|
||||||
{
|
{
|
||||||
NS_ConvertUTF16toUTF8
|
NS_ConvertUTF16toUTF8
|
||||||
fname(JS_GetStringChars(ATOM_TO_STRING(fun->atom)));
|
fname(JS_GetStringChars(str));
|
||||||
JS_snprintf(name, sizeof(name), "JS Object (Function - %s)",
|
JS_snprintf(name, sizeof(name), "JS Object (Function - %s)",
|
||||||
fname.get());
|
fname.get());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user