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

Unified Diff: runtime/bin/dartutils.cc

Issue 8383037: Improve error handling in the process library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 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/bin/builtin_in.cc ('k') | runtime/bin/eventhandler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/dartutils.cc
diff --git a/runtime/bin/dartutils.cc b/runtime/bin/dartutils.cc
index f6101c92428c0754508d7ace480c02f3666650e7..294eddacb807a16df2aed2ed5a090cf3d954b614 100644
--- a/runtime/bin/dartutils.cc
+++ b/runtime/bin/dartutils.cc
@@ -10,7 +10,7 @@ const char* DartUtils::kIdFieldName = "_id";
int64_t DartUtils::GetIntegerValue(Dart_Handle value_obj) {
- assert(Dart_IsInteger(value_obj));
+ ASSERT(Dart_IsInteger(value_obj));
Dart_Result result = Dart_IntegerValue(value_obj);
ASSERT(Dart_IsValidResult(result));
return Dart_GetResultAsCInt64(result);
@@ -42,7 +42,7 @@ intptr_t DartUtils::GetIntegerInstanceField(Dart_Handle handle,
const char* name) {
Dart_Result result =
Dart_GetInstanceField(handle, Dart_NewString(name));
- assert(Dart_IsValidResult(result));
+ ASSERT(Dart_IsValidResult(result));
intptr_t value = DartUtils::GetIntegerValue(Dart_GetResult(result));
return value;
}
« no previous file with comments | « runtime/bin/builtin_in.cc ('k') | runtime/bin/eventhandler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698