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

Unified Diff: sdk/lib/_internal/pub/lib/src/validator/dependency.dart

Issue 1123323003: Fix or work around failing pub tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 months 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/validator/dependency.dart
diff --git a/sdk/lib/_internal/pub/lib/src/validator/dependency.dart b/sdk/lib/_internal/pub/lib/src/validator/dependency.dart
index 2721d32aaa8e8fc0161290f3b488d88ff5d757a4..8e8ea84a85a1dd7ca5493ee26ee85baee345423d 100644
--- a/sdk/lib/_internal/pub/lib/src/validator/dependency.dart
+++ b/sdk/lib/_internal/pub/lib/src/validator/dependency.dart
@@ -69,7 +69,7 @@ class DependencyValidator extends Validator {
try {
var pubspecs = await entrypoint.cache.sources['hosted']
.getVersions(dep.name, dep.name);
- versions = pubspecs.map((pubspec) => pubspec.version);
+ versions = pubspecs.map((pubspec) => pubspec.version).toList();
} catch (error) {
versions = [];
}

Powered by Google App Engine
This is Rietveld 408576698