Chromium Code Reviews| Index: tests/isolate/isolate2_negative_test.dart |
| =================================================================== |
| --- tests/isolate/isolate2_negative_test.dart (revision 16156) |
| +++ tests/isolate/isolate2_negative_test.dart (working copy) |
| @@ -14,4 +14,9 @@ |
| main() { |
| SendPort port = spawnFunction(entry); |
| + // TODO(ngeoffray): Remove this code and update dart2js to wait for |
|
kasperl
2012/12/14 10:13:42
File bug for this.
|
| + // all ports to be closed. |
| + // Make sure the main thread stays alive so that the spawned isolate |
| + // can run. |
| + port.receive((msg) {}); |
|
ahe
2012/12/14 10:13:52
I would be more comfortable if this modification w
|
| } |