| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 // |
| 5 // OtherScripts=error_exit_at_spawnuri_iso.dart |
| 4 | 6 |
| 5 library error_exit_at_spawnuri; | 7 library error_exit_at_spawnuri; |
| 6 | 8 |
| 7 import "dart:isolate"; | 9 import "dart:isolate"; |
| 8 import "dart:async"; | 10 import "dart:async"; |
| 9 import "package:async_helper/async_helper.dart"; | 11 import "package:async_helper/async_helper.dart"; |
| 10 import "package:expect/expect.dart"; | 12 import "package:expect/expect.dart"; |
| 11 | 13 |
| 12 main(){ | 14 main(){ |
| 13 asyncStart(); | 15 asyncStart(); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 asyncEnd(); | 63 asyncEnd(); |
| 62 }; | 64 }; |
| 63 | 65 |
| 64 Isolate.spawnUri(Uri.parse("error_exit_at_spawnuri_iso.dart"), [], | 66 Isolate.spawnUri(Uri.parse("error_exit_at_spawnuri_iso.dart"), [], |
| 65 reply.sendPort, | 67 reply.sendPort, |
| 66 // Setup handlers as part of spawn. | 68 // Setup handlers as part of spawn. |
| 67 errorsAreFatal: false, | 69 errorsAreFatal: false, |
| 68 onError: errorPort.sendPort, | 70 onError: errorPort.sendPort, |
| 69 onExit: exitPort.sendPort); | 71 onExit: exitPort.sendPort); |
| 70 } | 72 } |
| OLD | NEW |