| Index: tests/isolate/spawn_uri_nested_child1_vm_isolate.dart
|
| diff --git a/tests/isolate/spawn_uri_nested_child1_vm_isolate.dart b/tests/isolate/spawn_uri_nested_child1_vm_isolate.dart
|
| index 26c661703035ad431c0fefaccead7f69c1ea3cf3..cc638780f2365de782f19e9edcee607ff44f2aea 100644
|
| --- a/tests/isolate/spawn_uri_nested_child1_vm_isolate.dart
|
| +++ b/tests/isolate/spawn_uri_nested_child1_vm_isolate.dart
|
| @@ -8,17 +8,16 @@
|
| library NestedSpawnUriChild1Library;
|
| import 'dart:isolate';
|
|
|
| -main() {
|
| +main(List<String> args, message) {
|
| ReceivePort port2 = new ReceivePort();
|
| - port2.receive((msg, SendPort replyTo) {
|
| + port2.listen((msg) {
|
| port2.close();
|
| });
|
|
|
| - SendPort s = spawnUri('spawn_uri_nested_child2_vm_isolate.dart');
|
| - s.send('hi', port2.toSendPort());
|
| + Isolate.spawnUri(Uri.parse('spawn_uri_nested_child2_vm_isolate.dart'),
|
| + ['hi'], port2.sendPort);
|
|
|
| - port.receive((message, SendPort replyTo) {
|
| - var result = message;
|
| - replyTo.send(result);
|
| - });
|
| + var data = message[0];
|
| + var replyTo = message[1];
|
| + replyTo.send(data);
|
| }
|
|
|