Commit 767bded9 authored by erik.corry@gmail.com's avatar erik.corry@gmail.com

Fix missing check for GC failure in number dictionary code.

Review URL: http://codereview.chromium.org/3781014

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5640 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 5598d3c6
......@@ -8591,7 +8591,9 @@ Object* NumberDictionary::Set(uint32_t key,
details = PropertyDetails(details.attributes(),
details.type(),
DetailsAt(entry).index());
SetEntry(entry, NumberDictionaryShape::AsObject(key), value, details);
Object* object_key = NumberDictionaryShape::AsObject(key);
if (object_key->IsFailure()) return object_key;
SetEntry(entry, object_key, value, details);
return this;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment