| Index: sdk/lib/_internal/pub/test/test_pub.dart
|
| diff --git a/sdk/lib/_internal/pub/test/test_pub.dart b/sdk/lib/_internal/pub/test/test_pub.dart
|
| index 4813ee48d0a3fdd20afdff0e0df4801257f860fa..86a2a258ed428d610d4f43eaf495bb5970397fa0 100644
|
| --- a/sdk/lib/_internal/pub/test/test_pub.dart
|
| +++ b/sdk/lib/_internal/pub/test/test_pub.dart
|
| @@ -436,7 +436,7 @@ ScheduledProcess startPub({List args, Future<Uri> tokenEndpoint}) {
|
|
|
| // Find a Dart executable we can use to spawn. Use the same one that was
|
| // used to run this script itself.
|
| - var dartBin = new Options().executable;
|
| + var dartBin = Platform.executable;
|
|
|
| // If the executable looks like a path, get its full path. That way we
|
| // can still find it when we spawn it with a different working directory.
|
| @@ -556,7 +556,7 @@ class PubProcess extends ScheduledProcess {
|
| /// The path to the `packages` directory from which pub loads its dependencies.
|
| String get _packageRoot {
|
| return path.absolute(path.join(
|
| - path.dirname(new Options().executable), '..', '..', 'packages'));
|
| + path.dirname(Platform.executable), '..', '..', 'packages'));
|
| }
|
|
|
| /// Skips the current test if Git is not installed. This validates that the
|
|
|