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

Unified Diff: runtime/vm/snapshot_test.cc

Issue 27215002: Very simple version of Isolates. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address Anders' comment. Created 7 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/snapshot_test.cc
diff --git a/runtime/vm/snapshot_test.cc b/runtime/vm/snapshot_test.cc
index 647b802e1ff3f226f3139cd09ae483376b817aab..199aa8dbd801b52061af9c323188bf062687a524 100644
--- a/runtime/vm/snapshot_test.cc
+++ b/runtime/vm/snapshot_test.cc
@@ -2579,8 +2579,8 @@ UNIT_TEST_CASE(PostCObject) {
"main() {\n"
" var messageCount = 0;\n"
" var exception = '';\n"
- " var port = new ReceivePort();\n"
- " port.receive((message, replyTo) {\n"
+ " var port = new RawReceivePort();\n"
+ " port.handler = (message) {\n"
" if (messageCount < 8) {\n"
" exception = '$exception${message}';\n"
" } else {\n"
@@ -2591,8 +2591,8 @@ UNIT_TEST_CASE(PostCObject) {
" }\n"
" messageCount++;\n"
" if (messageCount == 9) throw new Exception(exception);\n"
- " });\n"
- " return port.toSendPort();\n"
+ " };\n"
+ " return port.sendPort;\n"
"}\n";
Dart_Handle lib = TestCase::LoadTestScript(kScriptChars, NULL);
Dart_EnterScope();

Powered by Google App Engine
This is Rietveld 408576698