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

Unified Diff: runtime/vm/isolate.cc

Issue 2350633003: Add Dart_GetStickyError (Closed)
Patch Set: turnidge review 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
« runtime/vm/dart_api_impl.cc ('K') | « runtime/vm/dart_api_impl_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.cc
diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc
index a58c7baaf5373bda3593acfe5e392e14a42cb287..0cc7376a0e4653a642d32b23e5941cb6816db043 100644
--- a/runtime/vm/isolate.cc
+++ b/runtime/vm/isolate.cc
@@ -1521,9 +1521,10 @@ static void ShutdownIsolate(uword parameter) {
void Isolate::SetStickyError(RawError* sticky_error) {
- ASSERT(sticky_error_ == Error::null());
+ ASSERT(((sticky_error_ == Error::null()) ||
+ (sticky_error == Error::null())) &&
+ (sticky_error != sticky_error_));
sticky_error_ = sticky_error;
- message_handler()->PausedOnExit(true);
}
« runtime/vm/dart_api_impl.cc ('K') | « runtime/vm/dart_api_impl_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698