| 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=issue_21398_child_isolate1.dart |
| 8 // OtherScripts=issue_21398_child_isolate11.dart |
| 9 |
| 5 import 'dart:isolate'; | 10 import 'dart:isolate'; |
| 6 import 'dart:async'; | 11 import 'dart:async'; |
| 7 import "package:expect/expect.dart"; | 12 import "package:expect/expect.dart"; |
| 8 | 13 |
| 9 class FromMainIsolate { | 14 class FromMainIsolate { |
| 10 String toString() => 'from main isolate'; | 15 String toString() => 'from main isolate'; |
| 11 int get fld => 10; | 16 int get fld => 10; |
| 12 } | 17 } |
| 13 | 18 |
| 14 func1Child(args) { | 19 func1Child(args) { |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 ); | 160 ); |
| 156 } | 161 } |
| 157 ); | 162 ); |
| 158 } | 163 } |
| 159 | 164 |
| 160 | 165 |
| 161 main() { | 166 main() { |
| 162 spawnFuncTest(); | 167 spawnFuncTest(); |
| 163 spawnUriTest(); | 168 spawnUriTest(); |
| 164 } | 169 } |
| OLD | NEW |