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

Unified Diff: runtime/vm/exceptions_test.cc

Issue 8380020: Refactor the dart api a bit: (Closed) Base URL: http://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
Index: runtime/vm/exceptions_test.cc
===================================================================
--- runtime/vm/exceptions_test.cc (revision 651)
+++ runtime/vm/exceptions_test.cc (working copy)
@@ -30,30 +30,28 @@
void FUNCTION_NAME(Unhandled_invoke)(Dart_NativeArguments args) {
// Invoke the specified entry point.
- Dart_Result result = Dart_InvokeStatic(TestCase::lib(),
+ Dart_Handle result = Dart_InvokeStatic(TestCase::lib(),
Dart_NewString("Second"),
Dart_NewString("method2"),
0,
NULL);
- ASSERT(Dart_IsValidResult(result));
- ASSERT(Dart_ExceptionOccurred(Dart_GetResult(result)));
+ ASSERT(Dart_IsValid(result));
+ ASSERT(Dart_ExceptionOccurred(result));
return;
}
void FUNCTION_NAME(Unhandled_invoke2)(Dart_NativeArguments args) {
// Invoke the specified entry point.
- Dart_Result result = Dart_InvokeStatic(TestCase::lib(),
+ Dart_Handle result = Dart_InvokeStatic(TestCase::lib(),
Dart_NewString("Second"),
Dart_NewString("method2"),
0,
NULL);
- ASSERT(Dart_IsValidResult(result));
- Dart_Handle retobj = Dart_GetResult(result);
- ASSERT(Dart_ExceptionOccurred(retobj));
- result = Dart_GetException(retobj);
- ASSERT(Dart_IsValidResult(result));
- Dart_Handle exception = Dart_GetResult(result);
+ ASSERT(Dart_IsValid(result));
+ ASSERT(Dart_ExceptionOccurred(result));
+ Dart_Handle exception = Dart_GetException(result);
+ ASSERT(Dart_IsValid(exception));
Dart_ThrowException(exception);
UNREACHABLE();
return;

Powered by Google App Engine
This is Rietveld 408576698