Index: runtime/vm/custom_isolate_test.cc |
diff --git a/runtime/vm/custom_isolate_test.cc b/runtime/vm/custom_isolate_test.cc |
index 8f7796dc84facbbc40e4bcfd4deb748662bf49f2..477bdf20f54da47e9ca1477334764ca20f2a4c79 100644 |
--- a/runtime/vm/custom_isolate_test.cc |
+++ b/runtime/vm/custom_isolate_test.cc |
@@ -210,6 +210,7 @@ void MessageEvent::Process() { |
OS::Print("<< Shutting down isolate(%p)\n", isolate()); |
event_queue->RemoveEventsForIsolate(isolate()); |
Dart_SetMessageNotifyCallback(NULL); |
+ Dart_ExitIsolate(); |
Dart_ShutdownIsolate(); |
} else { |
Dart_ExitScope(); |