Index: runtime/vm/custom_isolate_test.cc |
diff --git a/runtime/vm/custom_isolate_test.cc b/runtime/vm/custom_isolate_test.cc |
index 9cae659e2fbbec47272408011b2041f7859e58e5..951d893be04b6f369b0250a201b431fe6a601e04 100644 |
--- a/runtime/vm/custom_isolate_test.cc |
+++ b/runtime/vm/custom_isolate_test.cc |
@@ -65,7 +65,7 @@ static const char* kCustomIsolateScriptChars = |
"main() {\n" |
" var isolate = new CustomIsolate(\"isolateMain\");\n" |
" isolate.spawn().then((SendPort port) {\n" |
- " port.call(42).receive((message, replyTo) {\n" |
+ " port.call(42).then((message) {\n" |
" echo('Received: ' + message);\n" |
" });\n" |
" });\n" |