Index: src/d8.cc |
diff --git a/src/d8.cc b/src/d8.cc |
index 7db6f3ed9e442081528e05140bd25b8911e26cb6..0b737c6ffe291e6913269f0618d4608127fe5210 100644 |
--- a/src/d8.cc |
+++ b/src/d8.cc |
@@ -2024,6 +2024,9 @@ bool Shell::SerializeValue(Isolate* isolate, Handle<Value> value, |
if (!SerializeValue(isolate, element_value, to_transfer, seen_objects, |
out_data)) |
return false; |
+ } else { |
+ Throw(isolate, "Failed to serialize array element."); |
+ return false; |
} |
} |
} else if (value->IsArrayBuffer()) { |
@@ -2098,6 +2101,9 @@ bool Shell::SerializeValue(Isolate* isolate, Handle<Value> value, |
if (!SerializeValue(isolate, property_value, to_transfer, seen_objects, |
out_data)) |
return false; |
+ } else { |
+ Throw(isolate, "Failed to serialize property."); |
+ return false; |
} |
} |
} else { |