| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 import 'dart:io'; | 5 import 'dart:io'; |
| 6 import 'dart:isolate'; | 6 import 'dart:isolate'; |
| 7 | 7 |
| 8 final PACKAGE_URI = "package:foo/bar.dart"; | 8 final PACKAGE_URI = "package:foo/bar.dart"; |
| 9 final PACKAGE_PATH = "file:///no/such/directory/bar.dart"; | 9 final PACKAGE_PATH = "file:///no/such/directory/bar.dart"; |
| 10 | 10 |
| 11 main([args, port]) async { | 11 main([args, port]) async { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 var resolvedPkg = await Isolate.resolvePackageUri(Uri.parse(PACKAGE_URI)); | 45 var resolvedPkg = await Isolate.resolvePackageUri(Uri.parse(PACKAGE_URI)); |
| 46 print("Spawned isolate's package root flag: $packageRootStr"); | 46 print("Spawned isolate's package root flag: $packageRootStr"); |
| 47 print("Spawned isolate's package config flag: $packageConfigStr"); | 47 print("Spawned isolate's package config flag: $packageConfigStr"); |
| 48 print("Spawned isolate's loaded package config: $packageConfig"); | 48 print("Spawned isolate's loaded package config: $packageConfig"); |
| 49 print("Spawned isolate's resolved package path: $resolvedPkg"); | 49 print("Spawned isolate's resolved package path: $resolvedPkg"); |
| 50 port.send([packageConfig?.toString(), resolvedPkg?.toString()]); | 50 port.send([packageConfig?.toString(), resolvedPkg?.toString()]); |
| 51 } catch (e, s) { | 51 } catch (e, s) { |
| 52 port.send("$e\n$s\n"); | 52 port.send("$e\n$s\n"); |
| 53 } | 53 } |
| 54 } | 54 } |
| OLD | NEW |