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

Unified Diff: runtime/vm/service.cc

Issue 1399583003: Add kInvalidExceptionPauseInfo and fix the build (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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 | « runtime/include/dart_tools_api.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/service.cc
diff --git a/runtime/vm/service.cc b/runtime/vm/service.cc
index a0f7f1b91fea8b326b44e71c57be036aba6584ae..4662ff9fdd0a1a90e602fc52a4ab9578b5f16ec1 100644
--- a/runtime/vm/service.cc
+++ b/runtime/vm/service.cc
@@ -3019,7 +3019,7 @@ static Dart_ExceptionPauseInfo exception_pause_mode_values[] = {
kPauseOnAllExceptions,
kNoPauseOnExceptions,
kPauseOnUnhandledExceptions,
- static_cast<Dart_ExceptionPauseInfo>(-1), // Fall through.
+ kInvalidExceptionPauseInfo,
};
@@ -3038,7 +3038,7 @@ static bool SetExceptionPauseMode(Isolate* isolate, JSONStream* js) {
}
Dart_ExceptionPauseInfo info =
EnumMapper(mode, exception_pause_mode_names, exception_pause_mode_values);
- if (info == -1) {
+ if (info == kInvalidExceptionPauseInfo) {
PrintInvalidParamError(js, "mode");
return true;
}
« no previous file with comments | « runtime/include/dart_tools_api.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698