OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 // Test that deferred libraries are supported from isolates other than the root | 5 // Test that deferred libraries are supported from isolates other than the root |
6 // isolate. | 6 // isolate. |
7 | 7 |
8 import 'dart:isolate'; | 8 import 'dart:isolate'; |
9 | 9 |
10 main() { | 10 main() { |
(...skipping 18 matching lines...) Expand all Loading... |
29 }).catchError((error) { | 29 }).catchError((error) { |
30 print(error); | 30 print(error); |
31 }); | 31 }); |
32 } catch (exception, stackTrace) { | 32 } catch (exception, stackTrace) { |
33 print('Test failed.'); | 33 print('Test failed.'); |
34 print(exception); | 34 print(exception); |
35 print(stackTrace); | 35 print(stackTrace); |
36 rethrow; | 36 rethrow; |
37 } | 37 } |
38 } | 38 } |
OLD | NEW |