mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-04-01 12:03:08 +00:00
Check return value of hashify() call, bug 712907. r=luke
This commit is contained in:
parent
1875c5ce30
commit
bae5eefc8a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user