bug=424750 Patch from Alfred Peng to make dtrace code compilable again after my changes from bug 424376. r=myself, not a part of the default browser configuration.

This commit is contained in:
igor@mir2.org 2008-03-24 05:07:35 -07:00
Родитель 435f3e0bc6
Коммит 2f0080e7ba
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -54,13 +54,13 @@ static char dempty[] = "<null>";
char *
jsdtrace_funcclass_name(JSFunction *fun)
{
JSNativeFunction *nfun;
JSClass *clasp;
if (FUN_IS_SCRIPTED(fun))
return dempty;
nfun = FUN_TO_NATIVE(fun);
return nfun->clasp ? (char *) nfun->clasp->name : dempty;
clasp = NATIVE_FUN_GET_CLASS(FUN_TO_NATIVE(fun));
return clasp ? (char *) clasp->name : dempty;
}
char *