Commit d5c355e3 authored by kasperl@chromium.org's avatar kasperl@chromium.org

Make sure to retry SetHiddenPropertiesObject if it

returns a failure.
Review URL: http://codereview.chromium.org/402034

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3323 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 1bc9a21e
...@@ -327,7 +327,7 @@ Handle<Object> GetHiddenProperties(Handle<JSObject> obj, ...@@ -327,7 +327,7 @@ Handle<Object> GetHiddenProperties(Handle<JSObject> obj,
// object if requested. Otherwise return the undefined value. // object if requested. Otherwise return the undefined value.
if (create_if_needed) { if (create_if_needed) {
Handle<Object> hidden_obj = Factory::NewJSObject(Top::object_function()); Handle<Object> hidden_obj = Factory::NewJSObject(Top::object_function());
return Handle<Object>(obj->SetHiddenPropertiesObject(*hidden_obj)); CALL_HEAP_FUNCTION(obj->SetHiddenPropertiesObject(*hidden_obj), Object);
} else { } else {
return Factory::undefined_value(); return Factory::undefined_value();
} }
......
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