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

Unified Diff: runtime/vm/isolate_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/isolate_test.cc
===================================================================
--- runtime/vm/isolate_test.cc (revision 651)
+++ runtime/vm/isolate_test.cc (working copy)
@@ -38,16 +38,15 @@
" }\n"
"}\n";
Dart_Handle lib = TestCase::LoadTestScript(kScriptChars, NULL);
- Dart_Result result = Dart_InvokeStatic(lib,
+ Dart_Handle result = Dart_InvokeStatic(lib,
Dart_NewString("SpawnNewIsolate"),
Dart_NewString("testMain"),
0,
NULL);
- EXPECT(Dart_IsValidResult(result));
- Dart_Handle result_obj = Dart_GetResult(result);
- EXPECT(Dart_ExceptionOccurred(result_obj));
- Dart_Result exception_result = Dart_GetException(result_obj);
- EXPECT(Dart_IsValidResult(exception_result));
+ EXPECT(Dart_IsValid(result));
+ EXPECT(Dart_ExceptionOccurred(result));
+ Dart_Handle exception_result = Dart_GetException(result);
+ EXPECT(Dart_IsValid(exception_result));
}
#endif // TARGET_ARCH_IA32.

Powered by Google App Engine
This is Rietveld 408576698