Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Unified Diff: tests/standalone/debugger/debug_lib.dart

Issue 15119003: Fixed syntax error in debug_lib.dart (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/debugger/debug_lib.dart
diff --git a/tests/standalone/debugger/debug_lib.dart b/tests/standalone/debugger/debug_lib.dart
index 50aee1cfd87ec8cd70be9255fce14b174f8d2a86..27e212e78e1767d5e28956af4ce5b9d34c8ff2f1 100644
--- a/tests/standalone/debugger/debug_lib.dart
+++ b/tests/standalone/debugger/debug_lib.dart
@@ -488,7 +488,7 @@ class Debugger {
}
void close({killDebugee: false}) {
- void exit() {
+ void printErrorsAndExit() {
if (errorsDetected) throw "Errors detected";
exit(errors.length);
}
@@ -498,7 +498,7 @@ class Debugger {
if (socket != null) {
socket.close().catchError((error) {
print("Error occured while closing socket: $error");
- };
+ });
}
if (killDebugee) {
if (!targetProcess.kill()) {
@@ -510,10 +510,10 @@ class Debugger {
// available and we call exit() in the next event loop cycle.
// Otherwise this will wait for the process to exit.
targetProcess.exitCode.then((exitCode) {
- exit();
+ printErrorsAndExit();
});
} else {
- exit();
+ printErrorsAndExit();
}
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698