Bug 851377 - Now ResolvingId::isResolving is not called with a null object. r=bholley

This commit is contained in:
Mohit Gahlot 2013-03-18 21:28:05 +05:30
Родитель 2648b6a9ce
Коммит 8cc749406f
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -537,7 +537,10 @@ bool
XPCWrappedNativeXrayTraits::isResolving(JSContext *cx, JSObject *holder,
jsid id)
{
return ResolvingId::getResolvingId(holder)->isResolving(id);
ResolvingId *cur = ResolvingId::getResolvingId(holder);
if (!cur)
return false;
return cur->isResolving(id);
}
// Some DOM objects have shared properties that don't have an explicit