Index: runtime/bin/process.cc |
diff --git a/runtime/bin/process.cc b/runtime/bin/process.cc |
index d7dd894636294bb87338b7590a32a6e67e2b623c..3c34a47517510aab6b9af38b3b15ede33c8fb3fe 100644 |
--- a/runtime/bin/process.cc |
+++ b/runtime/bin/process.cc |
@@ -10,7 +10,6 @@ |
#include "include/dart_api.h" |
- |
namespace dart { |
namespace bin { |
@@ -208,7 +207,8 @@ void FUNCTION_NAME(Process_Exit)(Dart_NativeArguments args) { |
int64_t status = 0; |
// Ignore result if passing invalid argument and just exit 0. |
DartUtils::GetInt64Value(Dart_GetNativeArgument(args, 0), &status); |
- // Be sure to do platform-specific cleanups. |
+ Dart_ExitIsolate(); |
+ Dart_Cleanup(); |
Platform::Cleanup(); |
exit(static_cast<int>(status)); |
} |