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

Unified Diff: src/value-serializer.cc

Issue 2332843003: ValueSerializer: promote scheduled exception if the caller throws one. (Closed)
Patch Set: Created 4 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/value-serializer.cc
diff --git a/src/value-serializer.cc b/src/value-serializer.cc
index 6c3d7e058c2dbf27d35b2b7d2c02ce5faeb55812..d7ce69db1d6e3267d6dc0ddd43f4e9bcd8e68497 100644
--- a/src/value-serializer.cc
+++ b/src/value-serializer.cc
@@ -744,6 +744,9 @@ void ValueSerializer::ThrowDataCloneError(
isolate_->Throw(
*isolate_->factory()->NewError(isolate_->error_function(), message));
}
+ if (isolate_->has_scheduled_exception()) {
+ isolate_->PromoteScheduledException();
+ }
}
ValueDeserializer::ValueDeserializer(Isolate* isolate,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698