Check return value of hashify() call, bug 712907. r=luke

This commit is contained in:
Brian Hackett 2011-12-23 18:19:51 -08:00
parent dd4bc3e426
commit ac059e50a2

View File

@ -461,7 +461,11 @@ Shape::newDictionaryList(JSContext *cx, HeapPtrShape *listp)
root->listp = listp;
JS_ASSERT(root->inDictionary());
root->hashify(cx);
if (!root->hashify(cx)) {
*listp = list;
return NULL;
}
return root;
}