| 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();
|
|
|