| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 | 4 |
| 5 // TODO(bkonyi): This test should be moved to compiler/dart2js. |
| 6 |
| 5 import "dart:async"; | 7 import "dart:async"; |
| 6 import "dart:js"; | 8 import "dart:js"; |
| 7 import "dart:collection" show Queue; | 9 import "dart:collection" show Queue; |
| 8 import "package:expect/expect.dart"; | 10 import "package:expect/expect.dart"; |
| 9 import "package:async_helper/async_helper.dart"; | 11 import "package:async_helper/async_helper.dart"; |
| 10 | 12 |
| 11 var errors = new Queue(); | 13 var errors = new Queue(); |
| 12 int ctr = 0; | 14 int ctr = 0; |
| 13 | 15 |
| 14 main() { | 16 main() { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 38 } | 40 } |
| 39 } | 41 } |
| 40 | 42 |
| 41 () async { | 43 () async { |
| 42 () async { | 44 () async { |
| 43 throwit(); | 45 throwit(); |
| 44 }(); | 46 }(); |
| 45 throwit(); | 47 throwit(); |
| 46 }(); | 48 }(); |
| 47 } | 49 } |
| OLD | NEW |