зеркало из https://github.com/mozilla/gecko-dev.git
Bug 851377 - Now ResolvingId::isResolving is not called with a null object. r=bholley
This commit is contained in:
Родитель
2648b6a9ce
Коммит
8cc749406f
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче