Index: src/liveobjectlist.cc |
diff --git a/src/liveobjectlist.cc b/src/liveobjectlist.cc |
index 54a2331f1d1b66338f656ebb16dcf00e905f0fd5..d62c4d17639203c2b1fd48f79c1191d56797dc25 100644 |
--- a/src/liveobjectlist.cc |
+++ b/src/liveobjectlist.cc |
@@ -1336,7 +1336,9 @@ MaybeObject* LiveObjectList::DumpPrivate(DumpWriter* writer, |
// Allocate the JSArray of the elements. |
Handle<JSObject> elements = factory->NewJSObject(isolate->array_function()); |
if (elements->IsFailure()) return Object::cast(*elements); |
- Handle<JSArray>::cast(elements)->SetContent(*elements_arr); |
+ |
+ maybe_result = Handle<JSArray>::cast(elements)->SetContent(*elements_arr); |
+ if (maybe_result->IsFailure()) return maybe_result; |
// Set body.elements. |
Handle<String> elements_sym = factory->LookupAsciiSymbol("elements"); |
@@ -1462,7 +1464,9 @@ MaybeObject* LiveObjectList::SummarizePrivate(SummaryWriter* writer, |
Handle<JSObject> summary_obj = |
factory->NewJSObject(isolate->array_function()); |
if (summary_obj->IsFailure()) return Object::cast(*summary_obj); |
- Handle<JSArray>::cast(summary_obj)->SetContent(*summary_arr); |
+ |
+ maybe_result = Handle<JSArray>::cast(summary_obj)->SetContent(*summary_arr); |
+ if (maybe_result->IsFailure()) return maybe_result; |
// Create the body object. |
Handle<JSObject> body = factory->NewJSObject(isolate->object_function()); |
@@ -1589,7 +1593,9 @@ MaybeObject* LiveObjectList::Info(int start_idx, int dump_limit) { |
// Return the result as a JS array. |
Handle<JSObject> lols = factory->NewJSObject(isolate->array_function()); |
- Handle<JSArray>::cast(lols)->SetContent(*list); |
+ |
+ maybe_result = Handle<JSArray>::cast(lols)->SetContent(*list); |
+ if (maybe_result->IsFailure()) return maybe_result; |
Handle<JSObject> result = factory->NewJSObject(isolate->object_function()); |
if (result->IsFailure()) return Object::cast(*result); |