Index: runtime/vm/dart_api_impl.cc |
diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc |
index 76110c173195d0d85a6bb18bed0cd2831020e143..96da554588280aa79d08ceaf64253a795a9b6c8c 100644 |
--- a/runtime/vm/dart_api_impl.cc |
+++ b/runtime/vm/dart_api_impl.cc |
@@ -1275,10 +1275,10 @@ DART_EXPORT bool Dart_HandleServiceMessages() { |
Isolate* isolate = Isolate::Current(); |
CHECK_ISOLATE_SCOPE(isolate); |
CHECK_CALLBACK_STATE(isolate); |
+ |
+ ASSERT(isolate->GetAndClearResumeRequest() == false); |
isolate->message_handler()->HandleOOBMessages(); |
- // TODO(turnidge): The return value here should indicate whether an |
- // OOB message should cause the program to resume. Implement. |
- return false; |
+ return isolate->GetAndClearResumeRequest(); |
} |