| OLD | NEW |
| 1 diff --git a/../dart/pkg/async_helper/lib/async_helper.dart b/pkg/async_helper/l
ib/async_helper.dart | 1 diff --git a/../dart/pkg/async_helper/lib/async_helper.dart b/pkg/async_helper/l
ib/async_helper.dart |
| 2 index 37496bc..1b8acf4 100644 | 2 index 37496bc..1b8acf4 100644 |
| 3 --- a/../dart/pkg/async_helper/lib/async_helper.dart | 3 --- a/../dart/pkg/async_helper/lib/async_helper.dart |
| 4 +++ b/pkg/async_helper/lib/async_helper.dart | 4 +++ b/pkg/async_helper/lib/async_helper.dart |
| 5 @@ -27,16 +27,22 @@ library async_helper; | 5 @@ -27,16 +27,22 @@ library async_helper; |
| 6 // 'dart:isolate' (i.e. it is in particular problematic with dart2js). | 6 // 'dart:isolate' (i.e. it is in particular problematic with dart2js). |
| 7 // It would be nice if we could use a different mechanism for different | 7 // It would be nice if we could use a different mechanism for different |
| 8 // runtimes. | 8 // runtimes. |
| 9 -import 'dart:isolate'; | 9 -import 'dart:isolate'; |
| 10 +import 'dart:fletch'; | 10 +import 'dart:dartino'; |
| 11 | 11 |
| 12 bool _initialized = false; | 12 bool _initialized = false; |
| 13 -ReceivePort _port = null; | 13 -ReceivePort _port = null; |
| 14 +Port _port = null; | 14 +Port _port = null; |
| 15 int _asyncLevel = 0; | 15 int _asyncLevel = 0; |
| 16 | 16 |
| 17 Exception _buildException(String msg) { | 17 Exception _buildException(String msg) { |
| 18 return new Exception('Fatal: $msg. This is most likely a bug in your test.'); | 18 return new Exception('Fatal: $msg. This is most likely a bug in your test.'); |
| 19 } | 19 } |
| 20 | 20 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 40 } | 40 } |
| 41 @@ -63,7 +71,7 @@ void asyncEnd() { | 41 @@ -63,7 +71,7 @@ void asyncEnd() { |
| 42 } | 42 } |
| 43 _asyncLevel--; | 43 _asyncLevel--; |
| 44 if (_asyncLevel == 0) { | 44 if (_asyncLevel == 0) { |
| 45 - _port.close(); | 45 - _port.close(); |
| 46 + _port.send(null); | 46 + _port.send(null); |
| 47 _port = null; | 47 _port = null; |
| 48 print('unittest-suite-success'); | 48 print('unittest-suite-success'); |
| 49 } | 49 } |
| OLD | NEW |