| Index: runtime/vm/snapshot_test.cc
|
| diff --git a/runtime/vm/snapshot_test.cc b/runtime/vm/snapshot_test.cc
|
| index 17264e83dba98a1d49bb16c0b30d58ccc70a690f..365d9e0d42e5ee105197785d9be5da6b2124fb4f 100644
|
| --- a/runtime/vm/snapshot_test.cc
|
| +++ b/runtime/vm/snapshot_test.cc
|
| @@ -2604,8 +2604,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"
|
| @@ -2616,8 +2616,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();
|
|
|