Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Unified Diff: sdk/lib/_internal/pub/lib/src/io.dart

Issue 747273003: Add a test for pub's async_await compiler. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/pub/lib/src/io.dart
diff --git a/sdk/lib/_internal/pub/lib/src/io.dart b/sdk/lib/_internal/pub/lib/src/io.dart
index 58a52ef00eaf0e412fb618ec23763f836da0273f..d1aaf39c3460014e3fc2c22823b452d04999f2fa 100644
--- a/sdk/lib/_internal/pub/lib/src/io.dart
+++ b/sdk/lib/_internal/pub/lib/src/io.dart
@@ -485,11 +485,13 @@ String assetPath(String target) {
return path.join(
sdk.rootDirectory, 'lib', '_internal', 'pub', 'asset', target);
} else {
- return path.join(
- path.dirname(libraryPath('pub.io')), '..', '..', 'asset', target);
+ return path.join(pubRoot, 'asset', target);
}
}
+/// Returns the path to the root of pub.
Bob Nystrom 2014/12/02 19:15:50 "...'s sources in the Dart repo."
nweiz 2014/12/02 21:14:13 Done.
+String get pubRoot => path.join(repoRoot, 'sdk', 'lib', '_internal', 'pub');
+
/// Returns the path to the root of the Dart repository.
///
/// This throws a [StateError] if it's called when running pub from the SDK.

Powered by Google App Engine
This is Rietveld 408576698