[ CLI ] Shutdown DartDev isolate properly when error condition encountered
Fixes https://github.com/dart-lang/sdk/issues/45771 TEST=CQ Change-Id: Id0d706c9c28383fe0395eee5bbe8eeb06a8aed46 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/214343 Reviewed-by: Siva Annamalai <asiva@google.com> Commit-Queue: Ben Konyi <bkonyi@google.com>
This commit is contained in:
committed by
commit-bot@chromium.org
parent
797299909a
commit
fc4ab33fc1
@@ -26,7 +26,7 @@
|
||||
Dart_CloseNativePort(send_port_id); \
|
||||
} \
|
||||
Dart_ExitScope(); \
|
||||
Dart_ExitIsolate(); \
|
||||
Dart_ShutdownIsolate(); \
|
||||
return; \
|
||||
}
|
||||
|
||||
@@ -237,7 +237,7 @@ void DartDevIsolate::DartDevRunner::RunCallback(uword args) {
|
||||
ProcessError("Unable to find 'main' in root library 'dartdev'",
|
||||
kErrorExitCode);
|
||||
Dart_ExitScope();
|
||||
Dart_ExitIsolate();
|
||||
Dart_ShutdownIsolate();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user