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

Unified Diff: runtime/vm/isolate.cc

Issue 2223913002: Add an API for setting the sticky error (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: asiva review Created 4 years, 4 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 | « runtime/vm/isolate.h ('k') | runtime/vm/service_test.cc » ('j') | 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 52aaa445d990c77a11dcf1a2ea3f634f4c007c36..028a130008587d395e2d73e7c75a494339e72ba1 100644
--- a/runtime/vm/isolate.cc
+++ b/runtime/vm/isolate.cc
@@ -1513,6 +1513,13 @@ static void ShutdownIsolate(uword parameter) {
}
+void Isolate::SetStickyError(RawError* sticky_error) {
+ ASSERT(sticky_error_ == Error::null());
+ sticky_error_ = sticky_error;
+ message_handler()->PausedOnExit(true);
+}
+
+
void Isolate::Run() {
message_handler()->Run(Dart::thread_pool(),
RunIsolate,
« no previous file with comments | « runtime/vm/isolate.h ('k') | runtime/vm/service_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698