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
parent ff49b7b077
commit 466c217001

View File

@ -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