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); |
} |