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

Unified Diff: vm/isolate_test.cc

Issue 10021072: Remove the deprecated method invocation and field access apis from the (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 8 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 | « vm/heap_test.cc ('k') | vm/object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/isolate_test.cc
===================================================================
--- vm/isolate_test.cc (revision 6767)
+++ vm/isolate_test.cc (working copy)
@@ -29,22 +29,18 @@
" SpawnNewIsolate() : super() { }\n"
" void main() {\n"
" }\n"
- " static int testMain() {\n"
- " try {\n"
- " new SpawnNewIsolate().spawn().then(function(SendPort port) {\n"
- " });\n"
- " } catch (var e) {\n"
- " throw;\n"
- " }\n"
- " return 0;\n"
+ "}\n"
+ "int testMain() {\n"
+ " try {\n"
+ " new SpawnNewIsolate().spawn().then(function(SendPort port) {\n"
+ " });\n"
+ " } catch (var e) {\n"
+ " throw;\n"
" }\n"
+ " return 0;\n"
"}\n";
Dart_Handle lib = TestCase::LoadTestScript(kScriptChars, NULL);
- Dart_Handle result = Dart_InvokeStatic(lib,
- Dart_NewString("SpawnNewIsolate"),
- Dart_NewString("testMain"),
- 0,
- NULL);
+ Dart_Handle result = Dart_Invoke(lib, Dart_NewString("testMain"), 0, NULL);
EXPECT(Dart_IsError(result));
EXPECT(Dart_ErrorHasException(result));
Dart_Handle exception_result = Dart_ErrorGetException(result);
« no previous file with comments | « vm/heap_test.cc ('k') | vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698