mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Check return value of hashify() call, bug 712907. r=luke
This commit is contained in:
parent
dd4bc3e426
commit
ac059e50a2
@ -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…
Reference in New Issue
Block a user