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 a5fcd1688263dfbf49a431834fd177a1ca6529b4..c35ab69efa0e0075817813ff9dac81433dffd156 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. |
@@ -555,7 +555,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 |