Index: runtime/vm/dart_api_impl_test.cc |
diff --git a/runtime/vm/dart_api_impl_test.cc b/runtime/vm/dart_api_impl_test.cc |
index a35bf9916aa35500208aefdd898b0c30795fd750..8e7d69805ca5320a13e00494779ce0391234b40e 100644 |
--- a/runtime/vm/dart_api_impl_test.cc |
+++ b/runtime/vm/dart_api_impl_test.cc |
@@ -2819,6 +2819,7 @@ UNIT_TEST_CASE(WeakPersistentHandlesCallbackShutdown) { |
&peer, |
0, |
WeakPersistentHandlePeerFinalizer); |
+ Dart_ExitScope(); |
Dart_ShutdownIsolate(); |
EXPECT(peer == 42); |
} |