Index: sdk/lib/_internal/pub/lib/src/pubspec.dart |
diff --git a/sdk/lib/_internal/pub/lib/src/pubspec.dart b/sdk/lib/_internal/pub/lib/src/pubspec.dart |
index 9a4d3e34930a1b091f4cb0a2026d4b01cc385fe0..d24e6ff83a3d9a366b39c6cb72099a9a64c66c4a 100644 |
--- a/sdk/lib/_internal/pub/lib/src/pubspec.dart |
+++ b/sdk/lib/_internal/pub/lib/src/pubspec.dart |
@@ -357,6 +357,7 @@ class Pubspec { |
sourceName = _sources.defaultSource.name; |
versionConstraint = _parseVersionConstraint(spec, "$field.$name"); |
} else if (spec is Map) { |
+ spec = new Map.from(spec); |
Bob Nystrom
2014/06/03 00:33:14
Document this.
nweiz
2014/06/03 02:03:21
Done.
|
if (spec.containsKey('version')) { |
versionConstraint = _parseVersionConstraint(spec.remove('version'), |
"$field.$name.version"); |