| 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 | 4 |
| 5 // Note: the following comment is used by test.dart to additionally compile the |
| 6 // other isolate's code. |
| 7 // OtherScripts=deferred_loaded_lib.dart |
| 8 |
| 5 import 'dart:isolate'; | 9 import 'dart:isolate'; |
| 6 import 'dart:async'; | 10 import 'dart:async'; |
| 7 import "package:expect/expect.dart"; | 11 import "package:expect/expect.dart"; |
| 8 | 12 |
| 9 import "deferred_loaded_lib.dart" deferred as lib; | 13 import "deferred_loaded_lib.dart" deferred as lib; |
| 10 | 14 |
| 11 // In this test case we send an object created from a deferred library | 15 // In this test case we send an object created from a deferred library |
| 12 // that is loaded in the child isolate but not the parent isolate. The | 16 // that is loaded in the child isolate but not the parent isolate. The |
| 13 // parent isolate does not know about the type of this object and throws | 17 // parent isolate does not know about the type of this object and throws |
| 14 // an unhandled exception. | 18 // an unhandled exception. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 40 receivePort.close(); | 44 receivePort.close(); |
| 41 } | 45 } |
| 42 ); | 46 ); |
| 43 } | 47 } |
| 44 ); | 48 ); |
| 45 } | 49 } |
| 46 | 50 |
| 47 main() { | 51 main() { |
| 48 helperFunction(); /// 01: runtime error | 52 helperFunction(); /// 01: runtime error |
| 49 } | 53 } |
| OLD | NEW |