Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Unified Diff: src/d8.cc

Issue 1220193004: Fix cluster-fuzz found regression with d8 Workers (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: add assertThrows Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-crbug-506549.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-crbug-506549.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698